localconnectivityservice/dun/server/src/DunCloseWait.cpp
changeset 60 841f70763fbe
parent 29 3ae5cb0b4c02
equal deleted inserted replaced
52:866b4af7ffbe 60:841f70763fbe
   106 
   106 
   107 // ---------------------------------------------------------------------------
   107 // ---------------------------------------------------------------------------
   108 // Stops closing the objects in the close list
   108 // Stops closing the objects in the close list
   109 // ---------------------------------------------------------------------------
   109 // ---------------------------------------------------------------------------
   110 //
   110 //
   111 TInt CDunCloseWait::Stop()
   111 void CDunCloseWait::Stop()
   112     {
   112     {
   113     FTRACE(FPrint( _L("CDunCloseWait::Stop()" )));
   113     FTRACE(FPrint( _L("CDunCloseWait::Stop()" )));
   114     if ( !IsActive() )
       
   115         {
       
   116         FTRACE(FPrint( _L("CDunCloseWait::Stop() (not ready) complete" )));
       
   117         return KErrNotReady;
       
   118         }
       
   119     Cancel();
   114     Cancel();
   120     FTRACE(FPrint( _L("CDunCloseWait::Stop() complete" )));
   115     FTRACE(FPrint( _L("CDunCloseWait::Stop() complete" )));
   121     return KErrNone;
       
   122     }
   116     }
   123 
   117 
   124 // ---------------------------------------------------------------------------
   118 // ---------------------------------------------------------------------------
   125 // CDunCloseWait::CDunCloseWait
   119 // CDunCloseWait::CDunCloseWait
   126 // ---------------------------------------------------------------------------
   120 // ---------------------------------------------------------------------------
   173 // Gets called on cancel
   167 // Gets called on cancel
   174 // ---------------------------------------------------------------------------
   168 // ---------------------------------------------------------------------------
   175 //
   169 //
   176 void CDunCloseWait::DoCancel()
   170 void CDunCloseWait::DoCancel()
   177     {
   171     {
       
   172     FTRACE(FPrint( _L("CDunCloseWait::DoCancel()" )));
       
   173     FTRACE(FPrint( _L("CDunCloseWait::DoCancel() complete" )));
   178     }
   174     }