mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-07 16:59:18 +00:00
DevIo.pm: avoiding partial "endless" loops (Forum #53309)
git-svn-id: https://svn.fhem.de/fhem/trunk@11786 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ba9b84aabe
commit
8f551e8a60
@ -306,6 +306,7 @@ DevIo_OpenDev($$$;$)
|
||||
return &$doCb(undef); # Forum 53309
|
||||
}
|
||||
|
||||
delete($readyfnlist{"$name.$dev"});
|
||||
my $timeout = $hash->{TIMEOUT} ? $hash->{TIMEOUT} : 3;
|
||||
my $doTcpTail = sub($) {
|
||||
my ($conn) = @_;
|
||||
@ -323,7 +324,6 @@ DevIo_OpenDev($$$;$)
|
||||
|
||||
$hash->{TCPDev} = $conn;
|
||||
$hash->{FD} = $conn->fileno();
|
||||
delete($readyfnlist{"$name.$dev"});
|
||||
$selectlist{"$name.$dev"} = $hash;
|
||||
return 1;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user