Browse Source

Add hack to get back correct parsing of pads

main
Luke Murphy 4 years ago
parent
commit
f914a48b53
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 6
      etherpump/commands/pull.py

6
etherpump/commands/pull.py

@ -280,6 +280,12 @@ async def handle_pad(args, padid, data, info, session):
reason = "PANIC, couldn't download the pad contents"
break
# Note(decentral1se): cannot track this bug down but basically the `data`
# and `padid` are getting out of sync and it is ending up that the same pad
# over and over again is downloaded. This resets things in a way that it
# works. This is a hack and one day TM I will find out how to fix it proper
data["padID"] = padid
if skip:
print("[ ] {} (skipped, reason: {})".format(padid, reason))
return

Loading…
Cancel
Save