diff --git a/etherpump/commands/pull.py b/etherpump/commands/pull.py index a8044bf..567d1ca 100644 --- a/etherpump/commands/pull.py +++ b/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