wlanutilities/wlansniffer/aiplugin/src/wsfdisconnectactivewrapper.cpp
branchRCL_3
changeset 16 8b0eae1b1d71
parent 15 dff6ebfd236f
--- a/wlanutilities/wlansniffer/aiplugin/src/wsfdisconnectactivewrapper.cpp	Fri Mar 12 15:48:54 2010 +0200
+++ b/wlanutilities/wlansniffer/aiplugin/src/wsfdisconnectactivewrapper.cpp	Mon Mar 15 12:44:54 2010 +0200
@@ -118,20 +118,27 @@
 void CWsfDisconnectActiveWrapper::RunL()
     {
     LOG_ENTERFN( "CWsfDisconnectActiveWrapper::RunL" );
-    if (iState == EUninitialized)
+    if ( iStatus == KErrNone )
         {
-        LOG_WRITE( "disconnect" );
-        iModel->Disconnect( iPckg, iStatus );
-        iState = EInitialized;
-        SetActive(); // Tell scheduler a request is active
-        }
-    else if (iState == EInitialized )
-        {
-        LOG_WRITEF( "request result = %d", iPckg() );
+        if (iState == EUninitialized)
+            {
+            LOG_WRITE( "disconnect" );
+            iModel->Disconnect( iPckg, iStatus );
+            iState = EInitialized;
+            SetActive(); // Tell scheduler a request is active
+            }
+        else if (iState == EInitialized )
+            {
+            LOG_WRITEF( "request result = %d", iPckg() );
+            }
+        else
+            {
+            LOG_WRITEF( "iState = %d", iState );
+            }
         }
     else
         {
-        LOG_WRITEF( "iState = %d", iState );
+        LOG_WRITEF( "DisconnectActiveWrapper iStatus = %d", iStatus.Int() );
         }
     }