email/pop3andsmtpmtm/popservermtm/src/POPSMTM.CPP
branchRCL_3
changeset 66 fc3320e39880
parent 60 7fdbb852d323
child 77 da6ac9d688df
--- a/email/pop3andsmtpmtm/popservermtm/src/POPSMTM.CPP	Wed Sep 01 12:31:54 2010 +0100
+++ b/email/pop3andsmtpmtm/popservermtm/src/POPSMTM.CPP	Tue Sep 14 21:11:56 2010 +0300
@@ -1432,6 +1432,14 @@
 			{	
 			CommandComplete( eCode );
 			}
+		else if(iState.iLastCurrentOperation == EPopConnectedAndIdle && iState.iCurrentOperation == EPopDisconnected && eCode != KErrNone)
+		    {
+            // Some email servers doesn’t wait for QUIT command, in such cases need to close RConnection
+            delete iSessionManager; 
+            iSessionManager = NULL;
+			
+            iPopProgress.iErrorCode = eCode;
+		    }
 		else
 			{
 			iPopProgress.iErrorCode = eCode;