summaryrefslogtreecommitdiff
path: root/host/proto
diff options
context:
space:
mode:
authorNicolas Schodet2009-02-27 01:22:06 +0100
committerNicolas Schodet2009-02-27 01:22:06 +0100
commit1e5721817dcc9e4dd12d6efed0fc2184e701a235 (patch)
treeaafc45b613aa015c60b62e746b7072c062b92a5c /host/proto
parentf8a7810ee62c0c41070da8f84e7e087d67dd6610 (diff)
* host/proto:
- fixed r639, bad wait method behaviour, closes #63.
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