Fix close
an already reset connection
This commit is contained in:
parent
c35cb8318a
commit
8f52315816
|
@ -55,4 +55,8 @@ class RawConnection(IRawConnection):
|
||||||
self.writer.close()
|
self.writer.close()
|
||||||
if sys.version_info < (3, 7):
|
if sys.version_info < (3, 7):
|
||||||
return
|
return
|
||||||
|
try:
|
||||||
await self.writer.wait_closed()
|
await self.writer.wait_closed()
|
||||||
|
# In case the connection is already reset.
|
||||||
|
except (ConnectionResetError, RawConnError):
|
||||||
|
return
|
||||||
|
|
Loading…
Reference in New Issue
Block a user