Changed order of operations to ensure speedy cancellation

This commit is contained in:
Mattia Giambirtone 2023-07-09 19:02:58 +02:00 committed by nocturn9x
parent 4c969d7827
commit 09ad7e12e3
Signed by: nocturn9x
GPG Key ID: 8270F9F467971E59
1 changed files with 2 additions and 2 deletions

View File

@ -277,10 +277,10 @@ class FIFOKernel(BaseKernel):
if self.run_queue and not self.skip:
self.handle_errors(self.step)
self.skip = False
if self.io_manager.pending():
self.io_manager.wait_io()
self.wakeup()
self.check_scopes()
if self.io_manager.pending():
self.io_manager.wait_io()
self.close()
def reschedule_running(self):