--- a/phoneengine/PhoneCntFinder/ContactService/src/cphcntasynctosync.cpp Mon Jan 18 20:18:27 2010 +0200
+++ b/phoneengine/PhoneCntFinder/ContactService/src/cphcntasynctosync.cpp Tue Jan 26 11:57:27 2010 +0200
@@ -54,8 +54,13 @@
TInt CPhCntAsyncToSync::MakeAsyncRequest()
{
iResponseReceived = EFalse;
- TRAPD( err, DoMakeAsyncRequestL() );
- if( !err )
+ // Return KErrInUse, if iWait is active.
+ TInt err( IsActive() ? KErrInUse : KErrNone );
+ if ( !err )
+ {
+ TRAP( err, DoMakeAsyncRequestL() );
+ }
+ if( !err )
{
// Check that response is not already received, we cannot
// start the scheduler if response is received, otherwise