summaryrefslogtreecommitdiff
path: root/2005/i/robert/src
diff options
context:
space:
mode:
Diffstat (limited to '2005/i/robert/src')
-rw-r--r--2005/i/robert/src/proto/proto.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/2005/i/robert/src/proto/proto.cc b/2005/i/robert/src/proto/proto.cc
index 94704fb..d1ba655 100644
--- a/2005/i/robert/src/proto/proto.cc
+++ b/2005/i/robert/src/proto/proto.cc
@@ -187,7 +187,8 @@ Proto::decode (const Frame &frame, const char *format, int &a0,
bool
Proto::wait (int timeout/*-1*/)
{
- serial_.wait (timeout);
+ // On apelle serial_.wait avec un timeout toujours inf ou égal à proto::timeout_
+ serial_.wait (timeout < timeout_ ? timeout : timeout_);
return sync ();
}