--------------------- PatchSet 6007 Date: 2007/10/24 17:15:09 Author: chtsanti Branch: async-calls Tag: (none) Log: Add a cbdataReference to deleteThis method. This hack needed to allow the callEnd operate well when called outside an async call Members: src/ICAP/AsyncJob.cc:1.3.4.3->1.3.4.4 Index: squid3/src/ICAP/AsyncJob.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/ICAP/AsyncJob.cc,v retrieving revision 1.3.4.3 retrieving revision 1.3.4.4 diff -u -r1.3.4.3 -r1.3.4.4 --- squid3/src/ICAP/AsyncJob.cc 23 Oct 2007 20:27:56 -0000 1.3.4.3 +++ squid3/src/ICAP/AsyncJob.cc 24 Oct 2007 17:15:09 -0000 1.3.4.4 @@ -114,6 +114,11 @@ // there is no call wrapper waiting for our return, so we fake it debugs(93, 5, typeName << " will delete this, reason: " << stopReason); inCall = "FAKE-deleteThis"; + + //callEnd will try to do a cbdataReferenceDone because + //normally called after an AsyncStart call which do a cbdataReference + //so we need this hack here + cbdataReference(this->toCbdata()); callEnd(); }