mirror of
https://github.com/QubesOS/qubes-doc.git
synced 2025-10-13 11:00:42 -04:00
Initialize asyncio event loop before using it
Python 3.14 (in Fedora 43) throws RunetimeError if event loop is not initialized before using it. Resolves: QubesOS/qubes-issues#10188
This commit is contained in:
parent
d05bb2b25b
commit
bb5054c462
1 changed files with 1 additions and 3 deletions
|
@ -222,9 +222,7 @@ Here is the server code:
|
|||
socket_path = '/var/run/qubes/policy-agent.sock'
|
||||
service = SocketService(socket_path)
|
||||
|
||||
loop = asyncio.get_event_loop()
|
||||
loop.run_until_complete(service.run())
|
||||
|
||||
asyncio.run(service.run())
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue