mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-28 10:57:19 +01: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
1 changed files with 6 additions and 2 deletions
|
|
@ -1571,8 +1571,12 @@ def startup_on_demand(self):
|
|||
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…
Reference in a new issue