pull/8/head
Nicolas Jouanin 2015-08-17 23:13:40 +02:00
rodzic d2d1a9f975
commit 913dd77134
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -413,7 +413,7 @@ class Broker:
yield from writer.close()
self.logger.debug("Connection closed")
return
if connect.variable_header.protocol_name != "MQTT":
if connect.variable_header.proto_name != "MQTT":
self.logger.warn('[MQTT-3.1.2-1] Incorrect protocol name: "%s"' % connect.variable_header.protocol_name)
yield from writer.close()
self.logger.debug("Connection closed")