--- a/hwrmhaptics/hapticsclient/src/hwrmhapticssession.cpp Fri Sep 10 19:45:56 2010 +0300
+++ b/hwrmhaptics/hapticsclient/src/hwrmhapticssession.cpp Thu Sep 23 10:05:41 2010 +0300
@@ -155,11 +155,17 @@
}
User::WaitForRequest( status );
+
+ // We can't use the 'exit reason' if the server paniced as this
+ // is the panic 'reason' and may be '0' which cannot be distinguished
+ // from KErrNone
+ ret = (server.ExitType() == EExitPanic)? KErrGeneral : status.Int();
+
server.Close();
- COMPONENT_TRACE( ( _L( "RHWRMHapticsSession::StartServer - return %d" ), status.Int() ) );
+ COMPONENT_TRACE( ( _L( "RHWRMHapticsSession::StartServer - return %d" ), ret ) );
- return status.Int();
+ return ret;
}
// ---------------------------------------------------------------------------