]> git.phdru.name Git - bookmarks_db.git/commitdiff
Fix(Robots): Remove extra second
authorOleg Broytman <phd@phdru.name>
Tue, 10 Sep 2024 12:43:47 +0000 (15:43 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 10 Sep 2024 12:43:47 +0000 (15:43 +0300)
Robots/bkmk_raio.py
Robots/concurrent_futures.py

index 42a766f5097a013273c06818e6c68a62124c2296..c1b8b722350789ff8e957af90ff42e06f8a90ada 100644 (file)
@@ -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
 
index 323ae388e1b9b954ac90d53dc04183414524e363..b1f2138f2403e34a189d33cfd6582510820bcc68 100644 (file)
@@ -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