diff -r 238255e8b033 -r 84d9eb65b26f email/pop3andsmtpmtm/popservermtm/src/POPS.CPP --- a/email/pop3andsmtpmtm/popservermtm/src/POPS.CPP Fri Apr 16 14:56:15 2010 +0300 +++ b/email/pop3andsmtpmtm/popservermtm/src/POPS.CPP Mon May 03 12:29:07 2010 +0300 @@ -208,7 +208,17 @@ iSocket->Disconnect(); iSocketConnected=EFalse; } - iSocket->Cancel(); // clear a pending socket call + + if(iState == EPopCapabilities || iState == EWaitingForReply) + { + if(iPopCapabilities) + { + iPopCapabilities->Cancel(); + } + } + + iSocket->Cancel(); // clear a pending socket call + CMsgActive::DoCancel(); }