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

HttpUtils: create $hash->{NAME} only if does not exist

git-svn-id: https://svn.fhem.de/fhem/trunk@4523 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-01-02 07:36:48 +00:00
parent 18183293af
commit c48da46b41

View File

@ -133,7 +133,7 @@ HttpUtils_Connect($)
return HttpUtils_Connect2($hash); return HttpUtils_Connect2($hash);
}; };
$hash->{NAME} = ""; # Delete might check it $hash->{NAME} = "" if(!defined($hash->{NAME})); #Delete might check it
$selectlist{$hash} = $hash; $selectlist{$hash} = $hash;
InternalTimer(gettimeofday()+$hash->{timeout}, InternalTimer(gettimeofday()+$hash->{timeout},
"HttpUtils_ConnErr", $hash, 0); "HttpUtils_ConnErr", $hash, 0);