1
0
mirror of https://github.com/FreeOpcUa/opcua-asyncio synced 2025-10-29 17:07:18 +08:00

make sure we use the correct loop in asyncio binary_server

This commit is contained in:
oroulet 2020-09-05 19:29:01 +02:00
parent b0ce213a79
commit d77e2421de

View File

@ -136,7 +136,7 @@ class BinaryServer:
self.hostname = sockname[0]
self.port = sockname[1]
self.logger.info('Listening on %s:%s', self.hostname, self.port)
self.cleanup_task = asyncio.create_task(self._await_closing_tasks())
self.cleanup_task = self.iserver.loop.create_task(self._await_closing_tasks())
async def stop(self):
self.logger.info('Closing asyncio socket server')