mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 01:33:30 +02:00
Remove "synchronous" from get_gui_name. Use suggested code to get the port.
This commit is contained in:
parent
c9e4eb68cd
commit
6dd1312693
1 changed files with 1 additions and 2 deletions
|
|
@ -102,7 +102,7 @@ def run(self):
|
|||
content_server_port = b'';
|
||||
try :
|
||||
content_server_port = \
|
||||
str(ConfigProxy(content_server_config())['port'])
|
||||
str(content_server_config().parse().port)
|
||||
except:
|
||||
pass
|
||||
message = str(self.driver.ZEROCONF_CLIENT_STRING + b' (on ' +
|
||||
|
|
@ -901,7 +901,6 @@ def open(self, connected_device, library_uuid):
|
|||
raise
|
||||
return False
|
||||
|
||||
@synchronous('sync_lock')
|
||||
def get_gui_name(self):
|
||||
if self.client_device_kind:
|
||||
return self.gui_name_template%(self.gui_name, self.client_device_kind)
|
||||
|
|
|
|||
Loading…
Reference in a new issue