email/pop3andsmtpmtm/popservermtm/src/POPSMTM.CPP
branchRCL_3
changeset 66 fc3320e39880
parent 60 7fdbb852d323
child 77 da6ac9d688df
equal deleted inserted replaced
60:7fdbb852d323 66:fc3320e39880
  1430 			}
  1430 			}
  1431 		if(!(iState.iLastCurrentOperation == EPopConnectedAndIdle && iState.iCurrentOperation == EPopDisconnected) ) 
  1431 		if(!(iState.iLastCurrentOperation == EPopConnectedAndIdle && iState.iCurrentOperation == EPopDisconnected) ) 
  1432 			{	
  1432 			{	
  1433 			CommandComplete( eCode );
  1433 			CommandComplete( eCode );
  1434 			}
  1434 			}
       
  1435 		else if(iState.iLastCurrentOperation == EPopConnectedAndIdle && iState.iCurrentOperation == EPopDisconnected && eCode != KErrNone)
       
  1436 		    {
       
  1437             // Some email servers doesn’t wait for QUIT command, in such cases need to close RConnection
       
  1438             delete iSessionManager; 
       
  1439             iSessionManager = NULL;
       
  1440 			
       
  1441             iPopProgress.iErrorCode = eCode;
       
  1442 		    }
  1435 		else
  1443 		else
  1436 			{
  1444 			{
  1437 			iPopProgress.iErrorCode = eCode;
  1445 			iPopProgress.iErrorCode = eCode;
  1438 			}
  1446 			}
  1439 		iServerEntry->SetEntry(KMsvNullIndexEntryId); // when it times out the server MTM doesn't get deleted and henc the iServerEntry is locked and cannot do anythig withit.  If you set it to NULL it will solve the problem
  1447 		iServerEntry->SetEntry(KMsvNullIndexEntryId); // when it times out the server MTM doesn't get deleted and henc the iServerEntry is locked and cannot do anythig withit.  If you set it to NULL it will solve the problem