mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
HttpUtils.pm: return in eval leaves only the eval, not the sub (Forum #129230)
git-svn-id: https://svn.fhem.de/fhem/trunk@26420 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
881607a2e8
commit
cb75c93532
@ -519,6 +519,7 @@ HttpUtils_Connect2NonblockingSSL($$)
|
|||||||
"$! ".($SSL_ERROR ? $SSL_ERROR : IO::Socket::SSL::errstr()));
|
"$! ".($SSL_ERROR ? $SSL_ERROR : IO::Socket::SSL::errstr()));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
return if(!$hash->{conn}); # HttpClose was called in the EVAL
|
||||||
if($@) {
|
if($@) {
|
||||||
my $err = $@;
|
my $err = $@;
|
||||||
Log3 $hash, $hash->{loglevel}, $err;
|
Log3 $hash, $hash->{loglevel}, $err;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user