From 6dd1312693f3dc5c160f3d6bf4bccadad085b375 Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Thu, 20 Sep 2012 14:46:10 +0200 Subject: [PATCH] Remove "synchronous" from get_gui_name. Use suggested code to get the port. --- src/calibre/devices/smart_device_app/driver.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/calibre/devices/smart_device_app/driver.py b/src/calibre/devices/smart_device_app/driver.py index d2e72ebc1e..f655e2bc4b 100644 --- a/src/calibre/devices/smart_device_app/driver.py +++ b/src/calibre/devices/smart_device_app/driver.py @@ -102,7 +102,7 @@ class ConnectionListener (Thread): 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 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin): 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)