Skip to content

Commit 2d9bf86

Browse files
authored
Bugfix for 0.10.0 (#181)
1 parent 2fe3787 commit 2d9bf86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

async_tkinter_loop/async_tkinter_loop.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ async def some_async_function():
110110

111111
@wraps(async_function)
112112
def wrapper(*handler_args) -> None:
113-
event_loop.create_task(async_function(*handler_args, *args, **kwargs))
113+
loop = event_loop or get_event_loop()
114+
loop.create_task(async_function(*handler_args, *args, **kwargs))
114115

115116
return wrapper

0 commit comments

Comments
 (0)