mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-30 11:06:11 +01:00
Turn off socket inheritance for the wireless device "find calibre" broadcast socket. It appears that calibre restarts otherwise keep this socket open.
This commit is contained in:
parent
fb8cf3c042
commit
781dbf7de0
1 changed files with 1 additions and 0 deletions
|
|
@ -1937,6 +1937,7 @@ def _startup_on_demand(self):
|
|||
|
||||
try:
|
||||
self.broadcast_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||
set_socket_inherit(self.broadcast_socket, False)
|
||||
except:
|
||||
message = 'creation of broadcast socket failed. This is not fatal.'
|
||||
self._debug(message)
|
||||
|
|
|
|||
Loading…
Reference in a new issue