Make deferred connection actually work
This commit is contained in:
parent
02c99e2a0c
commit
9e1e851884
@ -125,7 +125,7 @@ class ServerPlugin(gobject.GObject):
|
||||
|
||||
self._icon_cache = BuddyIconCache()
|
||||
|
||||
self._gabble_mgr = registry.GetManager('gabble')
|
||||
self._registry = registry
|
||||
self._online_contacts = {} # handle -> jid
|
||||
|
||||
self._activities = {} # activity id -> handle
|
||||
@ -264,7 +264,8 @@ class ServerPlugin(gobject.GObject):
|
||||
acct = self._account.copy()
|
||||
|
||||
# Create a new connection
|
||||
name, path = self._gabble_mgr[CONN_MGR_INTERFACE].RequestConnection(_PROTOCOL, acct)
|
||||
gabble_mgr = self._registry.GetManager('gabble')
|
||||
name, path = gabble_mgr[CONN_MGR_INTERFACE].RequestConnection(_PROTOCOL, acct)
|
||||
conn = Connection(name, path)
|
||||
del acct
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user