mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -1937,6 +1937,7 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin):
|
||||
|
||||
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…
x
Reference in New Issue
Block a user