2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

70_CanOverEthernet: module crashed when UDP port was occupied

git-svn-id: https://svn.fhem.de/fhem/trunk@20428 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
delmar 2019-10-30 21:09:41 +00:00
parent 447dde7012
commit 19a04bbf3e
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- bugfix: 70_CanOverEthernet: module crashed when UDP port was occupied
- feature: 98_weekprofile: add reading topics - a list of topic names
- change: 57_Calendar: new attribute, cutoffLaterThan; events without
DURATION and DTEND last 1 day; several fixes (see

View File

@ -73,6 +73,9 @@ sub CanOverEthernet_Define($$) {
my $portno = 5441;
my $conn = IO::Socket::INET->new(Proto=>"udp",LocalPort=>$portno);
Log3 $name, 0, "CanOverEthernet ($name) - ERROR: Unable to open port 5441 for reading."
unless defined ($conn);
$hash->{FD} = $conn->fileno();
$hash->{CD} = $conn;
$selectlist{$name} = $hash;