00_MQTT2_CLIENT.pm: better handling of close (Forum #103717)
git-svn-id: https://svn.fhem.de/fhem/trunk@20184 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user