equal
deleted
inserted
replaced
145 delete iMdESession; |
145 delete iMdESession; |
146 iMdESession = NULL; |
146 iMdESession = NULL; |
147 } |
147 } |
148 |
148 |
149 iMdESession = CMdESession::NewL( *this ); |
149 iMdESession = CMdESession::NewL( *this ); |
|
150 iSessionError = EFalse; |
150 } |
151 } |
151 else |
152 else |
152 { |
153 { |
153 // no error here, but need to shutdown daemon neatly |
154 // no error here, but need to shutdown daemon neatly |
154 User::Leave(KErrNone); |
155 User::Leave(KErrNone); |
278 // ----------------------------------------------------------------------------- |
279 // ----------------------------------------------------------------------------- |
279 // |
280 // |
280 void CThumbAGDaemon::HandleSessionError( CMdESession& /*aSession*/, TInt aError ) |
281 void CThumbAGDaemon::HandleSessionError( CMdESession& /*aSession*/, TInt aError ) |
281 { |
282 { |
282 TN_DEBUG2( "CThumbAGDaemon::HandleSessionError == %d", aError ); |
283 TN_DEBUG2( "CThumbAGDaemon::HandleSessionError == %d", aError ); |
283 if (aError != KErrNone) |
284 if (aError != KErrNone && !iSessionError) |
284 { |
285 { |
|
286 iSessionError = ETrue; |
|
287 |
285 // kill processor right away, because it also has MdESession |
288 // kill processor right away, because it also has MdESession |
286 if(iProcessor) |
289 if(iProcessor) |
287 { |
290 { |
288 delete iProcessor; |
291 delete iProcessor; |
289 iProcessor = NULL; |
292 iProcessor = NULL; |