From: Oleg Broytman Date: Tue, 10 Sep 2024 12:43:47 +0000 (+0300) Subject: Fix(Robots): Remove extra second X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=eec0ce4566748daa421b414e8cec744e147fa2d8;p=bookmarks_db.git Fix(Robots): Remove extra second --- diff --git a/Robots/bkmk_raio.py b/Robots/bkmk_raio.py index 42a766f..c1b8b72 100644 --- a/Robots/bkmk_raio.py +++ b/Robots/bkmk_raio.py @@ -113,7 +113,7 @@ class robot_aio(multi_mixin, robot_base): if pending: done, pending = await asyncio.wait( - pending, timeout=self.timeout+1, + pending, timeout=self.timeout, return_when=asyncio.FIRST_COMPLETED) self.pending = pending diff --git a/Robots/concurrent_futures.py b/Robots/concurrent_futures.py index 323ae38..b1f2138 100644 --- a/Robots/concurrent_futures.py +++ b/Robots/concurrent_futures.py @@ -61,7 +61,7 @@ class concurrent_futures(multi_mixin, robot_base): if pending: done, pending = concurrent.futures.wait( - pending, self.timeout+1, + pending, self.timeout, return_when=concurrent.futures.FIRST_COMPLETED) self.pending = pending