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 5de42a4d2a
commit 058ff00f65

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;
}
}
});