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:
parent
447dde7012
commit
19a04bbf3e
@ -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
|
||||||
|
@ -72,6 +72,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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user