equal
deleted
inserted
replaced
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 |