mirror of
https://github.com/arabianq/yndx-disk.git
synced 2026-04-27 22:21:23 +00:00
fixed _cleanup() for AsyncDiskClient
This commit is contained in:
@@ -81,7 +81,7 @@ class AsyncDiskClient:
|
||||
"""
|
||||
Cleanup on exit.
|
||||
"""
|
||||
loop = asyncio.get_running_loop()
|
||||
loop = asyncio.new_event_loop()
|
||||
loop.run_until_complete(self.session.close())
|
||||
|
||||
def __del__(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user