usbengines/usbotgwatcher/src/cusbnotenotifier.cpp
branchRCL_3
changeset 33 d895b6d953c9
parent 21 ff9df6630274
--- a/usbengines/usbotgwatcher/src/cusbnotenotifier.cpp	Tue Apr 27 17:41:29 2010 +0300
+++ b/usbengines/usbotgwatcher/src/cusbnotenotifier.cpp	Tue May 25 13:47:46 2010 +0300
@@ -130,14 +130,15 @@
 
     LOG1( "iStatus = %d" , iStatus.Int());
 
-    // if error occured, deal with it in RunError
-    LEAVEIFERROR(iStatus.Int());
+    // if iStatus contains some other than KErrNone code
+    // do not perform any special actions, 
+    // just forward the error code to caller
 
     iNotifier.CancelNotifier(iUsbNoteNotifier.iCat);
 
     // report to owner that show is over
     iUsbNoteNotifier.iNotifManager.NotifierShowCompletedL(iUsbNoteNotifier,
-            KErrNone, iRes());
+            iStatus.Int(), iRes());
     }
 
 // ---------------------------------------------------------------------------
@@ -159,8 +160,6 @@
 
     LOG1("aError = %d" , aError);
 
-    iNotifier.CancelNotifier(iUsbNoteNotifier.iCat);
-
     // try to continue  
     return KErrNone;
     }