imagehandlingutilities/thumbnailmanager/thumbagdaemon/src/thumbagdaemon.cpp
branchRCL_3
changeset 21 ad31f4183ddc
parent 16 85a88bc05e45
child 28 ff2fb7658ff7
--- a/imagehandlingutilities/thumbnailmanager/thumbagdaemon/src/thumbagdaemon.cpp	Tue May 11 16:30:11 2010 +0300
+++ b/imagehandlingutilities/thumbnailmanager/thumbagdaemon/src/thumbagdaemon.cpp	Tue May 25 13:01:47 2010 +0300
@@ -147,6 +147,7 @@
             }
 
         iMdESession = CMdESession::NewL( *this );
+        iSessionError = EFalse;
         }
     else
         {
@@ -280,8 +281,10 @@
 void CThumbAGDaemon::HandleSessionError( CMdESession& /*aSession*/, TInt aError )
     {
     TN_DEBUG2( "CThumbAGDaemon::HandleSessionError == %d", aError );
-    if (aError != KErrNone)
+    if (aError != KErrNone && !iSessionError)
         {
+        iSessionError = ETrue;
+    
         // kill processor right away, because it also has MdESession
         if(iProcessor)
             {