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:
Charles Haley 2017-10-27 10:03:38 +02:00
parent fb8cf3c042
commit 781dbf7de0

View File

@ -1937,6 +1937,7 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin):
try: try:
self.broadcast_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) self.broadcast_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
set_socket_inherit(self.broadcast_socket, False)
except: except:
message = 'creation of broadcast socket failed. This is not fatal.' message = 'creation of broadcast socket failed. This is not fatal.'
self._debug(message) self._debug(message)