mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'fix_socket_close' of https://github.com/pawl/calibre
This commit is contained in:
commit
1127c285bb
@ -328,6 +328,9 @@ class Connection: # {{{
|
||||
self.handle_event = None # prevent reference cycles
|
||||
try:
|
||||
self.socket.shutdown(socket.SHUT_WR)
|
||||
except OSError:
|
||||
pass
|
||||
try:
|
||||
self.socket.close()
|
||||
except OSError:
|
||||
pass
|
||||
|
Loading…
x
Reference in New Issue
Block a user