]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - support/sdk/python/tos.py
Fix the issue with tos-deluge not timing out properly.
[tinyos-2.x.git] / support / sdk / python / tos.py
index 330df0c2a4c66b29f6790805e70b8a947eda2188..dee4de43af77364e5d3abbcfeb4d61ce6222d280 100644 (file)
@@ -448,6 +448,8 @@ class AM(SimpleAM):
         r = super(AM, self).write(packet, amId, timeout, blocking)
         while not r:
             r = super(AM, self).write(packet, amId, timeout, blocking, inc=0)
+            if timeout and not r:
+               raise Timeout
         return True