hwrmhaptics/hapticsclient/src/hwrmhapticssession.cpp
changeset 74 9d35fd98f273
parent 54 072a9626b290
equal deleted inserted replaced
69:dc67b94625c5 74:9d35fd98f273
   153         {
   153         {
   154         server.Resume(); // Logon OK - start the server.
   154         server.Resume(); // Logon OK - start the server.
   155         }
   155         }
   156         
   156         
   157     User::WaitForRequest( status );
   157     User::WaitForRequest( status );
       
   158     	
       
   159     // We can't use the 'exit reason' if the server paniced as this
       
   160     // is the panic 'reason' and may be '0' which cannot be distinguished
       
   161     // from KErrNone
       
   162     ret = (server.ExitType() == EExitPanic)? KErrGeneral : status.Int();
       
   163     	
   158     server.Close();
   164     server.Close();
   159 
   165 
   160     COMPONENT_TRACE( ( _L( "RHWRMHapticsSession::StartServer - return %d" ), status.Int() ) );
   166     COMPONENT_TRACE( ( _L( "RHWRMHapticsSession::StartServer - return %d" ), ret ) );
   161 
   167 
   162     return status.Int();    
   168     return ret;    
   163     }
   169     }
   164 
   170 
   165 // ---------------------------------------------------------------------------
   171 // ---------------------------------------------------------------------------
   166 // Returns the server location.
   172 // Returns the server location.
   167 // ---------------------------------------------------------------------------
   173 // ---------------------------------------------------------------------------