From ef9c99200e3d61260daafc816dbbd3d073ece8a4 Mon Sep 17 00:00:00 2001 From: klausw <> Date: Fri, 1 Apr 2022 21:54:54 +0000 Subject: [PATCH] 53_GHoma.pm: bugfix to prevent possible crash of FHEM git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@25910 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/53_GHoma.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/FHEM/53_GHoma.pm b/FHEM/53_GHoma.pm index 8afb9f6e1..8d868386a 100644 --- a/FHEM/53_GHoma.pm +++ b/FHEM/53_GHoma.pm @@ -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); } #####################################