Remove "synchronous" from get_gui_name. Use suggested code to get the port.

This commit is contained in:
Charles Haley 2012-09-20 14:46:10 +02:00
parent c9e4eb68cd
commit 6dd1312693

View File

@ -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)