mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
HttpUtils.pm: change duplicate detection (Forum #120173)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@24209 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
28e6ff42c1
commit
ed677ef435
@ -934,13 +934,14 @@ HttpUtils_NonblockingGet($)
|
|||||||
$hash->{hu_blocking} = 0;
|
$hash->{hu_blocking} = 0;
|
||||||
my ($isFile, $fErr, $fContent) = HttpUtils_File($hash);
|
my ($isFile, $fErr, $fContent) = HttpUtils_File($hash);
|
||||||
return $hash->{callback}($hash, $fErr, $fContent) if($isFile);
|
return $hash->{callback}($hash, $fErr, $fContent) if($isFile);
|
||||||
|
|
||||||
|
my $st = stacktraceAsString(2);
|
||||||
if($hash->{hu_inProgress}) {
|
if($hash->{hu_inProgress}) {
|
||||||
my $m = "Another HttpUtils_NonblockingGet with the same hash is in progress";
|
Log 4, "WARNING: another HttpUtils_NonblockingGet with the same hash ".
|
||||||
Log 1, "ERROR: $m";
|
"in progress. OLD:$hash->{hu_inProgress} CURRENT:$st";
|
||||||
stacktrace();
|
|
||||||
return $hash->{callback}($hash, $m, undef);
|
|
||||||
}
|
}
|
||||||
$hash->{hu_inProgress} = 1;
|
$hash->{hu_inProgress} = $st;
|
||||||
|
|
||||||
my $err = HttpUtils_Connect($hash);
|
my $err = HttpUtils_Connect($hash);
|
||||||
if($err) {
|
if($err) {
|
||||||
delete($hash->{hu_inProgress});
|
delete($hash->{hu_inProgress});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user