Запускаю две функции, в них ошибок нет, всё корректно отрабатывает, но потом получаю ошибку. Подскажите как можно это исправить?
def go():
asyncio.run(main())
asyncio.run(create_new_client())
threading.Thread(target=go).start()
Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x00000174EBB49C10>
Traceback (most recent call last):
File "C:\Users\dev\AppData\Local\Programs\Python\Python39\lib\asyncio\proactor_events.py", line 116, in __del__
self.close()
File "C:\Users\dev\AppData\Local\Programs\Python\Python39\lib\asyncio\proactor_events.py", line 108, in close
self._loop.call_soon(self._call_connection_lost, None)
File "C:\Users\dev\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 746, in call_soon
self._check_closed()
File "C:\Users\dev\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 510, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed