From a5e6b8aff064c182bc19312eeeb501f10d0cef7a Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Wed, 30 Jan 2019 20:17:14 +0000 Subject: [PATCH] 00_MQTT2_SERVER.pm: Remove the "unclean session" error (Forum #90145) git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@18459 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/00_MQTT2_SERVER.pm | 5 ----- 1 file changed, 5 deletions(-) diff --git a/FHEM/00_MQTT2_SERVER.pm b/FHEM/00_MQTT2_SERVER.pm index e2ea1c844..aeb81eb4d 100644 --- a/FHEM/00_MQTT2_SERVER.pm +++ b/FHEM/00_MQTT2_SERVER.pm @@ -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);