mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
70_CanOverEthernet: module crashed when UDP port was occupied
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@20428 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e92f9383a3
commit
60b84fb56e
1
CHANGED
1
CHANGED
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# 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.
|
# 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
|
- feature: 98_weekprofile: add reading topics - a list of topic names
|
||||||
- change: 57_Calendar: new attribute, cutoffLaterThan; events without
|
- change: 57_Calendar: new attribute, cutoffLaterThan; events without
|
||||||
DURATION and DTEND last 1 day; several fixes (see
|
DURATION and DTEND last 1 day; several fixes (see
|
||||||
|
@ -73,6 +73,9 @@ sub CanOverEthernet_Define($$) {
|
|||||||
my $portno = 5441;
|
my $portno = 5441;
|
||||||
my $conn = IO::Socket::INET->new(Proto=>"udp",LocalPort=>$portno);
|
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->{FD} = $conn->fileno();
|
||||||
$hash->{CD} = $conn;
|
$hash->{CD} = $conn;
|
||||||
$selectlist{$name} = $hash;
|
$selectlist{$name} = $hash;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user