Always remove at this point

This commit is contained in:
Luke Murphy 2020-10-13 13:11:16 +02:00
parent 553d831cc3
commit 724f665753
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -30,9 +30,10 @@ async def wormhole_recv(code, parent, task_status=TASK_STATUS_IGNORED):
task_status.started((scope,)) task_status.started((scope,))
log.info(f"wormhole_recv: now starting receiving process ({code})") log.info(f"wormhole_recv: now starting receiving process ({code})")
await process.wait() await process.wait()
parent._remove_pending_transfer(code)
log.info(f"wormhole_recv: succesfully received ({code})") log.info(f"wormhole_recv: succesfully received ({code})")
if scope.cancel_called: if scope.cancel_called:
process.terminate() process.terminate()
log.info(f"wormhole_recv: succesfully terminated process ({code})") log.info(f"wormhole_recv: succesfully terminated process ({code})")
parent._remove_pending_transfer(code)