mirror of https://github.com/nocturn9x/giambio.git
Fixed bug in socket destructor
This commit is contained in:
parent
d0394ed7d8
commit
0516ea4bd8
|
@ -1,5 +1,4 @@
|
|||
"""
|
||||
Basic abstraction layer for giambio asynchronous sockets
|
||||
""" Basic abstraction layer for giambio asynchronous sockets
|
||||
|
||||
Copyright (C) 2020 nocturn9x
|
||||
|
||||
|
@ -88,6 +87,7 @@ class AsyncSocket:
|
|||
that's gone out of scope without being closed
|
||||
"""
|
||||
|
||||
if not self._closed and self.loop.selector.get_map() and self.sock in self.loop.selector.get_map():
|
||||
self.loop.selector.unregister(self.sock)
|
||||
|
||||
async def __aenter__(self):
|
||||
|
|
Loading…
Reference in New Issue