Skip to content

Commit ad60d9b

Browse files
authored
Merge pull request #469 from minrk/asyncresult-cancel
avoid setting result on cancelled AsyncResults
2 parents f8b0382 + 6375768 commit ad60d9b

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)