equal
deleted
inserted
replaced
52 // --------------------------------------------------------------------------- |
52 // --------------------------------------------------------------------------- |
53 // |
53 // |
54 TInt CPhCntAsyncToSync::MakeAsyncRequest() |
54 TInt CPhCntAsyncToSync::MakeAsyncRequest() |
55 { |
55 { |
56 iResponseReceived = EFalse; |
56 iResponseReceived = EFalse; |
57 TRAPD( err, DoMakeAsyncRequestL() ); |
57 // Return KErrInUse, if iWait is active. |
58 if( !err ) |
58 TInt err( IsActive() ? KErrInUse : KErrNone ); |
|
59 if ( !err ) |
|
60 { |
|
61 TRAP( err, DoMakeAsyncRequestL() ); |
|
62 } |
|
63 if( !err ) |
59 { |
64 { |
60 // Check that response is not already received, we cannot |
65 // Check that response is not already received, we cannot |
61 // start the scheduler if response is received, otherwise |
66 // start the scheduler if response is received, otherwise |
62 // scheduler waits forever. |
67 // scheduler waits forever. |
63 if( !iResponseReceived ) |
68 if( !iResponseReceived ) |