equal
deleted
inserted
replaced
478 void CLogAddEvent::OpenContactsL() |
478 void CLogAddEvent::OpenContactsL() |
479 { |
479 { |
480 //Sometimes, after a sequence of OpenContactsL()/CloseContacts() calls the Contacts server crashes |
480 //Sometimes, after a sequence of OpenContactsL()/CloseContacts() calls the Contacts server crashes |
481 //and OpenContactsL() leaves with error -15. In order to avoid that the following delay has been added. |
481 //and OpenContactsL() leaves with error -15. In order to avoid that the following delay has been added. |
482 //(something related to Contacts server state machine) |
482 //(something related to Contacts server state machine) |
483 User::After(100); |
483 User::After(1000); |
484 // Attempt to open DB |
484 // Attempt to open DB |
485 TRAPD(err,iContactPlugin->OpenContactsL()); |
485 TRAPD(err,iContactPlugin->OpenContactsL()); |
486 if(KErrNone!=err) |
486 if(KErrNone!=err) |
487 { |
487 { |
|
488 if(err == KErrServerTerminated) |
|
489 { |
|
490 RDebug::Print(_L("+++LogEng, LogAdd.cpp, Contacts server crashed!\r\n")); |
|
491 } |
488 // If DB doesn't open delete plugin |
492 // If DB doesn't open delete plugin |
489 delete iContactPlugin; |
493 delete iContactPlugin; |
490 iContactPlugin = NULL; |
494 iContactPlugin = NULL; |
491 User::Leave(err); |
495 User::Leave(err); |
492 } |
496 } |