This commit is contained in:
andrew (from workstation) 2019-11-06 16:03:31 +01:00
parent 2010bb1275
commit 5c8ccafd27

View File

@ -18,7 +18,7 @@ class MtProtoTask(AsyncTask, abc.ABC):
return 1e9 return 1e9
except RPCError as error: except RPCError as error:
return False if abs(error.CODE) < 500 else 1e9 * 2 return False if abs(error.CODE) < 500 else 2e9
async def _setup(self) -> bool: async def _setup(self) -> bool:
return await self._execute(super()._setup) return await self._execute(super()._setup)