00_MQTT2_SERVER.pm: Remove the "unclean session" error (Forum #90145)

git-svn-id: https://svn.fhem.de/fhem/trunk@18459 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2019-01-30 20:17:14 +00:00
parent f997060c5a
commit cc804e2fe1

View File

@@ -280,11 +280,6 @@ MQTT2_SERVER_Read($@)
$hash->{keepalive} = unpack('n', substr($pl, $off, 2)); $off += 2;
($hash->{cid}, $off) = MQTT2_SERVER_getStr($pl, $off);
if(!($hash->{cflags} & 0x02)) {
Log3 $sname, 2, "$cname wants unclean session, disconnecting";
return MQTT2_SERVER_terminate($hash, pack("C*", 0x20, 2, 0, 1));
}
my $desc = "keepAlive:$hash->{keepalive}";
if($hash->{cflags} & 0x04) { # Last Will & Testament
my ($wt, $wm);