From 876016f4c7127af389bc574ce78b0129abe4ee12 2012-08-05 04:20:11 From: MinRK <benjaminrk@gmail.com> Date: 2012-08-05 04:20:11 Subject: [PATCH] fix logic for infinite wait cutoff when waiting for outputs after receiving result --- diff --git a/IPython/parallel/client/asyncresult.py b/IPython/parallel/client/asyncresult.py index b459994..5ddf697 100644 --- a/IPython/parallel/client/asyncresult.py +++ b/IPython/parallel/client/asyncresult.py @@ -166,7 +166,8 @@ class AsyncResult(object): else: self._success = True finally: - if timeout is not None and timeout < 0: + if timeout is None or timeout < 0: + # cutoff infinite wait at 10s timeout = 10 self._wait_for_outputs(timeout)