From 1e5721817dcc9e4dd12d6efed0fc2184e701a235 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Fri, 27 Feb 2009 01:22:06 +0100 Subject: * host/proto: - fixed r639, bad wait method behaviour, closes #63. --- host/proto/proto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/proto/proto.py') 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 -- cgit v1.2.3