mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Bug #1262819 - bonjour unregistration fails in wireless device
This commit is contained in:
parent
e3b0de4829
commit
916fb01ab7
@ -1571,8 +1571,12 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin):
|
||||
def shutdown(self):
|
||||
if getattr(self, 'listen_socket', None) is not None:
|
||||
self.connection_listener.stop()
|
||||
unpublish_zeroconf('calibre smart device client',
|
||||
'_calibresmartdeviceapp._tcp', self.port, {})
|
||||
try:
|
||||
unpublish_zeroconf('calibre smart device client',
|
||||
'_calibresmartdeviceapp._tcp', self.port, {})
|
||||
except:
|
||||
self._debug('deregistration with bonjour failed')
|
||||
traceback.print_exc()
|
||||
self._close_listen_socket()
|
||||
|
||||
# Methods for dynamic control
|
||||
|
Loading…
x
Reference in New Issue
Block a user