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

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@4523 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2014-01-02 07:36:48 +00:00
parent 34214ccbf4
commit e4a648c654

View File

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