mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-19 20:45:05 +01:00
Merge branch 'fix_socket_close' of https://github.com/pawl/calibre
This commit is contained in:
commit
1127c285bb
1 changed files with 3 additions and 0 deletions
|
|
@ -328,6 +328,9 @@ def close(self):
|
|||
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…
Reference in a new issue