mirror of
https://github.com/markqvist/Sideband.git
synced 2024-10-01 03:15:37 -04:00
Fixed missing check for empty app data in announce handler
This commit is contained in:
parent
d4f8d8e30d
commit
930363f9a3
@ -23,7 +23,7 @@ class PropagationNodeDetector():
|
||||
|
||||
def received_announce(self, destination_hash, announced_identity, app_data):
|
||||
try:
|
||||
if len(app_data) > 0:
|
||||
if app_data != None and len(app_data) > 0:
|
||||
unpacked = msgpack.unpackb(app_data)
|
||||
node_active = unpacked[0]
|
||||
emitted = unpacked[1]
|
||||
|
Loading…
Reference in New Issue
Block a user