hti/HtiFramework/src/HtiDispatcher.cpp
branchRCL_3
changeset 24 a9c038d69df8
parent 18 d27dfa8884ad
child 39 3406c99bc375
--- a/hti/HtiFramework/src/HtiDispatcher.cpp	Tue May 25 14:22:58 2010 +0300
+++ b/hti/HtiFramework/src/HtiDispatcher.cpp	Wed Jun 09 11:23:41 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 );
         }