2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

HttpUtils.pm: call the callback if the nonblocking connect refuses to work (Forum #53309)

git-svn-id: https://svn.fhem.de/fhem/trunk@11621 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2016-06-05 17:37:36 +00:00
parent 7c22d6c161
commit 2cabe55965

View File

@ -263,7 +263,8 @@ HttpUtils_Connect($)
"HttpUtils_ConnErr", \%timerHash, 0);
return undef;
} else {
return "connect: $!";
$hash->{callback}($hash, "connect to $hash->{addr}: $!", "");
return undef;
}
}
});