00_ZWDongle.pm: fix some issues when connecting via network (Forum #38315)

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@8908 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2015-07-06 17:52:14 +00:00
parent 4d756c18e4
commit 6001220234

View File

@@ -276,6 +276,7 @@ ZWDongle_Set($@)
Log3 $hash, 4, "ZWDongle set $name $type ".join(" ",@a);
if($type eq "reopen") {
return if(AttrVal($name, "dummy",undef) || AttrVal($name, "disable",undef));
delete $hash->{NEXT_OPEN};
DevIo_CloseDev($hash);
sleep(1);
DevIo_OpenDev($hash, 0, "ZWDongle_DoInit");
@@ -589,7 +590,7 @@ ZWave_ProcessSendStack($)
ZWDongle_shiftSendStack($hash, 1, "ERROR: max send retries reached");
}
return if(!@{$hash->{SendStack}} || $hash->{WaitForAck});
return if(!@{$hash->{SendStack}} || $hash->{WaitForAck} || !$hash->{FD});
my $msg = $hash->{SendStack}->[0];