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
......@@ -132,6 +132,7 @@ class Mainloop(object):
# Calculate timeout again if required
if timeout_needs_update:
timeout = self._CalcTimeout(time.time())
timeout_needs_update = False
# Wait for I/O events
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment