email/pop3andsmtpmtm/popservermtm/src/POPS.CPP
branchRCL_3
changeset 21 c6838af47512
parent 0 72b543305e3a
child 47 5b14749788d7
child 76 60a8a215b0ec
--- a/email/pop3andsmtpmtm/popservermtm/src/POPS.CPP	Mon Mar 15 12:40:06 2010 +0200
+++ b/email/pop3andsmtpmtm/popservermtm/src/POPS.CPP	Wed Mar 31 21:25:02 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();
 	}