mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
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
This commit is contained in:
parent
578dc4ef90
commit
a5e6b8aff0
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user