vtuis/videotelui/src/tvtuistaterunning.cpp
branchRCL_3
changeset 32 890b5dd735f8
parent 8 07d1685f0cd4
--- a/vtuis/videotelui/src/tvtuistaterunning.cpp	Thu Jul 15 18:41:45 2010 +0300
+++ b/vtuis/videotelui/src/tvtuistaterunning.cpp	Thu Aug 19 09:57:36 2010 +0300
@@ -107,7 +107,13 @@
     switch ( aCommand )
         {
     case EVtUiCmdEndActiveCall:
-        ShutdownWithEngineCommandL( KVtEngTerminateSession );
+        {
+        const MVtEngSessionInfo::TSessionState state = SessionState( EFalse );
+        if ( state == MVtEngSessionInfo::EOpen )
+            {
+            ShutdownWithEngineCommandL( KVtEngTerminateSession );
+            }
+        }
         break;
     case EVtUiCmdCreateVoice:
         CreateVoiceCallL();