2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

53_GHoma.pm: bugfix to prevent possible crash of FHEM

git-svn-id: https://svn.fhem.de/fhem/trunk@25910 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
klausw 2022-04-01 21:54:54 +00:00
parent af1f1839ee
commit 188d699447

View File

@ -249,7 +249,11 @@ sub GHoma_moveclient($$) { # Handles von temporaerem Client zu Statischem uebe
delete($selectlist{$thash->{NAME}});
delete $thash->{FD};
CommandDelete(undef, $thash->{NAME});
syswrite( $chash->{CD}, GHoma_BuildString($init2) );
eval { syswrite( $chash->{CD}, GHoma_BuildString($init2) ); };
if ($@) {
Log3 ($thash, 3, "$thash->{TYPE} ($thash->{NAME}) syswrite error: $@\cnHash: $chash->{CD}");
return
}
InternalTimer(gettimeofday()+ $timeout, "GHoma_Timer", $chash,0);
}
#####################################