diff --git a/kutana/backends/vkontakte/backend.py b/kutana/backends/vkontakte/backend.py index 3c835dd..f77be4f 100644 --- a/kutana/backends/vkontakte/backend.py +++ b/kutana/backends/vkontakte/backend.py @@ -99,7 +99,7 @@ async def raw_request(self, method, kwargs={}): async def _execute_loop(self, loop): while True: - await asyncio.sleep(0) + await asyncio.sleep(self.api_request_pause) requests = [] @@ -125,8 +125,6 @@ async def _execute_loop(self, loop): loop=loop, ) - await asyncio.sleep(self.api_request_pause) - async def _execute_loop_perform_execute(self, code, requests): response = await self._get_response("execute", {"code": code})