summaryrefslogtreecommitdiffhomepage
path: root/host/proto
diff options
context:
space:
mode:
Diffstat (limited to 'host/proto')
-rw-r--r--host/proto/proto.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/proto/proto.py b/host/proto/proto.py
index 19dff792..e5f0af21 100644
--- a/host/proto/proto.py
+++ b/host/proto/proto.py
@@ -77,7 +77,7 @@ class Proto:
def wait (self, cond = None):
"""Wait forever or until cond () is True."""
- while not (self.sync () and (cond is not None or cond ())):
+ while not (self.sync () and cond is not None and cond ()):
fds = select.select ((self,), (), (), self.timeout)[0]
for i in fds:
assert i is self