diff -r a009639409f5 -r 1c75ea0eb44d hti/HtiFramework/src/HtiDispatcher.cpp --- a/hti/HtiFramework/src/HtiDispatcher.cpp Thu May 27 14:26:55 2010 +0300 +++ b/hti/HtiFramework/src/HtiDispatcher.cpp Fri Jun 11 15:16:26 2010 +0300 @@ -124,7 +124,7 @@ iHtiInstanceId( 0 ), iShowErrorDialogs( aShowErrorDialogs ), iReconnectDelay(aReconnectDelay), - iRebootReason(0) + iRebootReason(-1) { HTI_LOG_FORMAT( "MaxQueueMemorySize %d", iMaxQueueMemorySize ); iQueueSizeLowThresold = ( iMaxQueueMemorySize / 2 ) / 2; @@ -869,7 +869,7 @@ } else if(aMessage.Length() == 1) { - iRebootReason = 0; + iRebootReason = -1; } else { @@ -1039,7 +1039,7 @@ TInt err = KErrNone; RProcess rebootProcess; // First try the UI layer rebooter - if(iRebootReason == 0) + if(iRebootReason == -1) { err = rebootProcess.Create( KHtiDeviceRebootExeUI, KNullDesC ); }