From 83959c7c96139429560cff793c4b7f563e013f84 Mon Sep 17 00:00:00 2001 From: Goffi Date: Mon, 31 Mar 2014 12:23:13 +0200 Subject: [PATCH] core: fixed bad closure in connection intialisation sequence (profileConnected in plugins were not called correctly) --- src/core/sat_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/sat_main.py b/src/core/sat_main.py index d2ce8c20..78f7ef52 100644 --- a/src/core/sat_main.py +++ b/src/core/sat_main.py @@ -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)