hti/HtiFramework/src/HtiDispatcher.cpp
changeset 28 1c75ea0eb44d
parent 17 67c6ff54ec25
child 34 7259cf1302ad
--- 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 );
         }