Skip to content

Commit 6375768

Browse files
committed
avoid setting result on cancelled AsyncResults
1 parent f06532c commit 6375768

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ipyparallel/client/asyncresult.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@ def wait(self, timeout=-1):
269269
return self._ready
270270

271271
def _resolve_result(self, f=None):
272+
if self.done():
273+
return
272274
try:
273275
if f:
274276
results = f.result()

0 commit comments

Comments
 (0)