From eec0ce4566748daa421b414e8cec744e147fa2d8 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 10 Sep 2024 15:43:47 +0300 Subject: [PATCH] Fix(Robots): Remove extra second --- Robots/bkmk_raio.py | 2 +- Robots/concurrent_futures.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5