Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Lib/asyncio/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ def get_event_loop(self):
"""
if (self._local._loop is None and
not self._local._set_called and
threading.current_thread() is threading.main_thread()):
isinstance(threading.current_thread(), threading.Thread)):
self.set_event_loop(self.new_event_loop())

if self._local._loop is None:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Create new event loop in application sub threads if we are trying to get it and
it is not created yet.