2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-23 08:36:24 +00:00

HttpUtils.pm: report error if Nonblocking called twice with the same $hash (Forum #58540)

git-svn-id: https://svn.fhem.de/fhem/trunk@13082 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-01-15 12:41:10 +00:00
parent dc994c59fd
commit 423d22f198

View File

@ -254,6 +254,8 @@ HttpUtils_Connect($)
HttpUtils_Close($hash);
return $hash->{callback}($hash, $err, "") ;
}
return $hash->{callback}($hash, "Closed conn / parallel call?", "")
if(!$hash->{conn});
my $ret = connect($hash->{conn}, sockaddr_in($port, $iaddr));
if(!$ret) {
if($!{EINPROGRESS} || int($!)==10035 ||