Skip to content
This repository was archived by the owner on Jan 4, 2026. It is now read-only.

Commit 6d257d3

Browse files
authored
Merge pull request #25 from Ferenc-/fix-missing-event-loop
Fix missing event loop in `test_asyncio.py`
2 parents cb3bdf5 + aea3c3b commit 6d257d3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

examples/test_asyncio.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ def main(url):
4949
handler = SmlEvent()
5050
proto = SmlProtocol(url)
5151
proto.add_listener(handler.event, ['SmlGetListResponse'])
52-
loop = asyncio.get_event_loop()
52+
loop = asyncio.new_event_loop()
53+
asyncio.set_event_loop(loop)
5354
loop.run_until_complete(proto.connect(loop))
5455
loop.run_forever()
5556

0 commit comments

Comments
 (0)