From 2cabe5596593ba40e9f03159b59df4c32b777b3d Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sun, 5 Jun 2016 17:37:36 +0000 Subject: [PATCH] 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 --- fhem/FHEM/HttpUtils.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/HttpUtils.pm b/fhem/FHEM/HttpUtils.pm index eded9f98f..77d38b2fa 100644 --- a/fhem/FHEM/HttpUtils.pm +++ b/fhem/FHEM/HttpUtils.pm @@ -263,7 +263,8 @@ HttpUtils_Connect($) "HttpUtils_ConnErr", \%timerHash, 0); return undef; } else { - return "connect: $!"; + $hash->{callback}($hash, "connect to $hash->{addr}: $!", ""); + return undef; } } });