Skip to content
Snippets Groups Projects
Commit 53d47a06 authored by Guido Trotter's avatar Guido Trotter
Browse files

Mainloop: avoid calculating timeout every time

set timeout_needs_update to False after calculating the timeout.

Reviewed-by: imsnah
parent 2e668b38
No related branches found
No related tags found
No related merge requests found
...@@ -132,6 +132,7 @@ class Mainloop(object): ...@@ -132,6 +132,7 @@ class Mainloop(object):
# Calculate timeout again if required # Calculate timeout again if required
if timeout_needs_update: if timeout_needs_update:
timeout = self._CalcTimeout(time.time()) timeout = self._CalcTimeout(time.time())
timeout_needs_update = False
# Wait for I/O events # Wait for I/O events
try: try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment