mirror of
https://github.com/markqvist/Sideband.git
synced 2025-08-24 05:59:27 -04:00
Fixed missing check for empty app data in announce handler
This commit is contained in:
parent
d4f8d8e30d
commit
930363f9a3
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ class PropagationNodeDetector():
|
||||||
|
|
||||||
def received_announce(self, destination_hash, announced_identity, app_data):
|
def received_announce(self, destination_hash, announced_identity, app_data):
|
||||||
try:
|
try:
|
||||||
if len(app_data) > 0:
|
if app_data != None and len(app_data) > 0:
|
||||||
unpacked = msgpack.unpackb(app_data)
|
unpacked = msgpack.unpackb(app_data)
|
||||||
node_active = unpacked[0]
|
node_active = unpacked[0]
|
||||||
emitted = unpacked[1]
|
emitted = unpacked[1]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue