Skip to content

Commit 9efe4f7

Browse files
authored
Stay consistent with official behavior to set to None after.
1 parent 89d609f commit 9efe4f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

qasync/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ def _use_qeventloop(loop_factory):
849849
yield loop
850850
finally:
851851
loop.close()
852-
asyncio.set_event_loop(old_loop)
852+
asyncio.set_event_loop(None)
853853

854854
# A run function matching the signature of asyncio.run
855855
def run(main_coro, *, debug=None, loop_factory=None):

0 commit comments

Comments
 (0)