HttpUtils.pm: fixing close problem for Nonblocking (Forum #40631)
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@9189 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -77,7 +77,7 @@ HttpUtils_ConnErr($)
|
|||||||
if(defined($hash->{FD})) {
|
if(defined($hash->{FD})) {
|
||||||
delete($hash->{FD});
|
delete($hash->{FD});
|
||||||
delete($selectlist{$hash});
|
delete($selectlist{$hash});
|
||||||
$hash->{conn}->close();
|
$hash->{conn}->close() if($hash->{conn});
|
||||||
$hash->{callback}($hash, "connect to $hash->{addr} timed out", "");
|
$hash->{callback}($hash, "connect to $hash->{addr} timed out", "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user