mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-23 14:46: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:
parent
dc994c59fd
commit
423d22f198
@ -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 ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user