1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
166 TRAP( leaveCode, ret = DoExtFuncL( aTsyReqHandle, aIpc, |
166 TRAP( leaveCode, ret = DoExtFuncL( aTsyReqHandle, aIpc, |
167 aPackage ); ); |
167 aPackage ); ); |
168 |
168 |
169 if ( KErrNone != leaveCode ) |
169 if ( KErrNone != leaveCode ) |
170 { |
170 { |
171 // reset request handle to indicate the request is no longer ongoing |
171 ReqCompleted( aTsyReqHandle, leaveCode ); |
172 iTsyReqHandleStore->FindAndResetTsyReqHandle(aTsyReqHandle); |
|
173 ReqCompleted( aTsyReqHandle, leaveCode ); |
|
174 } |
172 } |
|
173 |
175 // save request handle |
174 // save request handle |
176 else if ( EMultimodeBroadcastReqHandleUnknown != iReqHandleType ) |
175 if ( EMultimodeBroadcastReqHandleUnknown != iReqHandleType ) |
177 { |
176 { |
178 #ifdef REQHANDLE_TIMER |
177 #ifdef REQHANDLE_TIMER |
179 SetTypeOfResponse( iReqHandleType, aTsyReqHandle ); |
178 SetTypeOfResponse( iReqHandleType, aTsyReqHandle ); |
180 #else |
179 #else |
181 //Never comes here ? See SetTypeOfResponse. |
180 //Never comes here ? See SetTypeOfResponse. |
182 iTsyReqHandleStore->SetTsyReqHandle( iReqHandleType, |
181 iTsyReqHandleStore->SetTsyReqHandle( iReqHandleType, |
183 aTsyReqHandle ); |
182 aTsyReqHandle ); |
184 #endif // REQHANDLE_TIMER |
183 #endif // REQHANDLE_TIMER |
|
184 // We've finished with this value now. Clear it so it doesn't leak |
|
185 // up to any other instances of this method down the call stack |
|
186 iReqHandleType = EMultimodeBroadcastReqHandleUnknown; |
185 } |
187 } |
186 // We've finished with this value now. Clear it so it doesn't leak |
|
187 // up to any other instances of this method down the call stack |
|
188 iReqHandleType = EMultimodeBroadcastReqHandleUnknown; |
|
189 break; |
188 break; |
190 } |
189 } |
191 |
190 |
192 return ret; |
191 return ret; |
193 } |
192 } |