mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-21 07:56:03 +00:00
TcpServerUtils.pm: Check for EAGAIN (Forum #27163)
git-svn-id: https://svn.fhem.de/fhem/trunk@6628 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9af3a37acb
commit
f0aaa2bb01
@ -56,7 +56,7 @@ TcpServer_Accept($$)
|
||||
my $name = $hash->{NAME};
|
||||
my @clientinfo = $hash->{SERVERSOCKET}->accept();
|
||||
if(!@clientinfo) {
|
||||
Log3 $name, 1, "Accept failed ($name: $!)";
|
||||
Log3 $name, 1, "Accept failed ($name: $!)" if($! != EAGAIN());
|
||||
return undef;
|
||||
}
|
||||
$hash->{CONNECTS}++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user