kopia lustrzana https://github.com/Yakifo/amqtt
Fix typo
rodzic
bec3302c00
commit
f44ea4a058
|
@ -12,7 +12,7 @@ class PingReqPacket(MQTTPacket):
|
||||||
if fixed is None:
|
if fixed is None:
|
||||||
header = MQTTFixedHeader(PacketType.PINGREQ, 0x00)
|
header = MQTTFixedHeader(PacketType.PINGREQ, 0x00)
|
||||||
else:
|
else:
|
||||||
if fixed.packet_type is not PacketType.DISCONNECT:
|
if fixed.packet_type is not PacketType.PINGREQ:
|
||||||
raise HBMQTTException("Invalid fixed packet type %s for PingReqPacket init" % fixed.packet_type)
|
raise HBMQTTException("Invalid fixed packet type %s for PingReqPacket init" % fixed.packet_type)
|
||||||
header = fixed
|
header = fixed
|
||||||
super().__init__(header)
|
super().__init__(header)
|
||||||
|
|
Ładowanie…
Reference in New Issue