mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-16 10:46:03 +00:00
82_LGTV_WebOS: Close socket then catch exception
git-svn-id: https://svn.fhem.de/fhem/trunk@25902 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
782deda04c
commit
8107ae2c93
@ -1,5 +1,6 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||
# Do not insert empty lines here, update check depends on it.
|
||||
- bugfix: 82_LGTV_WebOS: Close socket then catch exception
|
||||
- bugfix: 82_LGTV_WebOS: fix crash in filehandle
|
||||
- bugfix: 89_AndroidDB: Fixed bug in attribute createReadings
|
||||
- feature: 89_AndroidDB: Added creation of readings for shell commands
|
||||
|
@ -710,9 +710,11 @@ sub Write {
|
||||
}
|
||||
catch {
|
||||
if ( $_->isa('autodie::exception') && $_->matches(':io') ) {
|
||||
::Log3( $name, 2,
|
||||
::Log3( $name, 4,
|
||||
"LGTV_WebOS ($name) - can't write to socket, autodie exception: $_"
|
||||
);
|
||||
|
||||
Close($hash);
|
||||
return;
|
||||
}
|
||||
else {
|
||||
@ -759,9 +761,11 @@ sub Read {
|
||||
}
|
||||
catch {
|
||||
if ( $_->isa('autodie::exception') && $_->matches(':io') ) {
|
||||
::Log3( $name, 2,
|
||||
::Log3( $name, 4,
|
||||
"LGTV_WebOS ($name) - can't read from socket, autodie exception: $_"
|
||||
);
|
||||
|
||||
Close($hash);
|
||||
return;
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user