kopia lustrzana https://github.com/Yakifo/amqtt
Merge pull request #114 from phooky/master
Correctly handle CONNECT with zero-length client_idpull/8/head
commit
7c8e393166
|
@ -370,7 +370,7 @@ class Broker:
|
|||
|
||||
if client_session.clean_session:
|
||||
# Delete existing session and create a new one
|
||||
if client_session.client_id is not None:
|
||||
if client_session.client_id is not None and client_session.client_id != "":
|
||||
self.delete_session(client_session.client_id)
|
||||
else:
|
||||
client_session.client_id = gen_client_id()
|
||||
|
|
Ładowanie…
Reference in New Issue