mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
00_MQTT2_CLIENT.pm: better handling of close (Forum #103717)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@20184 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
71a0b3c439
commit
17153fb509
@ -290,7 +290,10 @@ MQTT2_CLIENT_Read($@)
|
||||
|
||||
if(!$reread) {
|
||||
my $buf = DevIo_SimpleRead($hash);
|
||||
return "" if(!defined($buf));
|
||||
if(!defined($buf)) {
|
||||
MQTT2_CLIENT_Disco($hash);
|
||||
return "";
|
||||
}
|
||||
$hash->{BUF} .= $buf;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user