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)