Cleanup
This commit is contained in:
parent
7b4780cfb7
commit
c0a8f3be49
2 changed files with 9 additions and 6 deletions
|
|
@ -47,10 +47,12 @@ class LXMFPropagationAnnounceHandler:
|
|||
propagation_transfer_limit = None
|
||||
wanted_inbound_peers = None
|
||||
if len(data) >= 4:
|
||||
try:
|
||||
wanted_inbound_peers = int(data[3])
|
||||
except:
|
||||
wanted_inbound_peers = None
|
||||
# TODO: Rethink, probably not necessary anymore
|
||||
# try:
|
||||
# wanted_inbound_peers = int(data[3])
|
||||
# except:
|
||||
# wanted_inbound_peers = None
|
||||
|
||||
if len(data) >= 3:
|
||||
try:
|
||||
propagation_transfer_limit = float(data[2])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue