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 134d13e493
commit 05693d1932

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