From 9fed6779fcf916c913ea85e198a1be99b2c4ad38 Mon Sep 17 00:00:00 2001 From: Alex Rousskov Date: Tue, 28 Jan 2014 12:28:23 -0700 Subject: [PATCH] Comm job callbacks need job's cbdata pointer, not a job pointer. Otherwise, in complex inheritance hierarchies, some [inner] classes will hit cbdata cookie assertions when scheduling Comm calls with callbacks. --- src/CommCalls.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CommCalls.h b/src/CommCalls.h index dba72d1554..084171b928 100644 --- a/src/CommCalls.h +++ b/src/CommCalls.h @@ -176,7 +176,7 @@ public: typedef void (C::*Method)(const Params &io); CommCbMemFunT(const CbcPointer &aJob, Method aMeth): JobDialer(aJob), - CommDialerParamsT(aJob.get()), + CommDialerParamsT(aJob->toCbdata()), method(aMeth) {} virtual bool canDial(AsyncCall &c) { -- 2.47.2