This commit is contained in:
alex 2025-09-22 12:30:50 +02:00
parent fa811a6678
commit b2a34766bc
No known key found for this signature in database

View File

@ -130,7 +130,7 @@ class Server:
evloop = reactor._asyncioEventloop
asyncio.set_event_loop(evloop)
if self.lifespan_context is not None:
evloop.run_until(self.lifespan_context.__aenter__())
evloop.run_until_complete(self.lifespan_context.__aenter__())
# Kick off the timeout loop
reactor.callLater(1, self.application_checker)