2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-19 00:26:03 +00:00

HttpUtils.pm: call the callback on SSL error (Forum #40631)

git-svn-id: https://svn.fhem.de/fhem/trunk@9196 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-09-03 07:29:30 +00:00
parent 75e5b0a49c
commit a419b4a8fe

View File

@ -170,9 +170,11 @@ HttpUtils_Connect($)
return $hash->{callback}($hash, "$host: ".strerror($errno), "")
if($errno);
return HttpUtils_Connect2($hash);
my $err = HttpUtils_Connect2($hash);
$hash->{callback}($hash, $err, "") if($err);
return $err;
};
$hash->{NAME} = "" if(!defined($hash->{NAME})); #Delete might check it
$hash->{NAME}="" if(!defined($hash->{NAME}));# Delete might check this
$selectlist{$hash} = $hash;
InternalTimer(gettimeofday()+$hash->{timeout},
"HttpUtils_ConnErr", \%timerHash, 0);