core: fixed bad closure in connection intialisation sequence (profileConnected in plugins were not called correctly)

This commit is contained in:
Goffi 2014-03-31 12:23:13 +02:00
commit 83959c7c96

View file

@ -260,7 +260,7 @@ class SAT(service.Service):
d = current.getConnectionDeferred()
d.addCallback(lambda dummy: current.roster.got_roster) # we want to be sure that we got the roster
for callback in plugin_conn_cb:
d.addCallback(lambda dummy: callback(profile))
d.addCallback(lambda dummy, callback=callback: callback(profile))
return d
self.memory.startProfileSession(profile)