hwrmhaptics/hapticsclient/src/hwrmhapticssession.cpp
changeset 70 653a8b91b95e
parent 50 48a00b70dc49
equal deleted inserted replaced
64:61992147389a 70:653a8b91b95e
   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 // ---------------------------------------------------------------------------