From ed677ef435fbfe20001f0229ad9dedf850e55b56 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sat, 10 Apr 2021 14:00:47 +0000 Subject: [PATCH] HttpUtils.pm: change duplicate detection (Forum #120173) git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@24209 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/HttpUtils.pm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/FHEM/HttpUtils.pm b/FHEM/HttpUtils.pm index cd415c7a5..96075d46e 100644 --- a/FHEM/HttpUtils.pm +++ b/FHEM/HttpUtils.pm @@ -934,13 +934,14 @@ HttpUtils_NonblockingGet($) $hash->{hu_blocking} = 0; my ($isFile, $fErr, $fContent) = HttpUtils_File($hash); return $hash->{callback}($hash, $fErr, $fContent) if($isFile); + + my $st = stacktraceAsString(2); if($hash->{hu_inProgress}) { - my $m = "Another HttpUtils_NonblockingGet with the same hash is in progress"; - Log 1, "ERROR: $m"; - stacktrace(); - return $hash->{callback}($hash, $m, undef); + Log 4, "WARNING: another HttpUtils_NonblockingGet with the same hash ". + "in progress. OLD:$hash->{hu_inProgress} CURRENT:$st"; } - $hash->{hu_inProgress} = 1; + $hash->{hu_inProgress} = $st; + my $err = HttpUtils_Connect($hash); if($err) { delete($hash->{hu_inProgress});