mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix unnecessary error popup during shutdown if the wireless device driver is running and mdns de-registration fails. Fixes #1262819 [Calibre throws error when stopping wireless device connection](https://bugs.launchpad.net/calibre/+bug/1262819)
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
0c7e911325
@ -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