37_harmony.pm: don't write to disconnected devices

git-svn-id: https://svn.fhem.de/fhem/trunk@6954 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2014-11-12 15:16:59 +00:00
parent 89ea738ed3
commit 76809f0d53

View File

@@ -1172,6 +1172,8 @@ harmony_send($$)
my ($hash, $data) = @_;
my $name = $hash->{NAME};
return undef if( !$hash->{CD} );
Log3 $name, 4, "$name: send: $data";
syswrite $hash->{CD}, $data;