sources/interface.cpp

branch
protocol5
changeset 135
966c09c34ae1
parent 133
4d8fa5394d67
child 136
8fb1c657e0b0
--- a/sources/interface.cpp	Wed Jul 20 13:21:46 2016 +0300
+++ b/sources/interface.cpp	Wed Jul 20 13:25:54 2016 +0300
@@ -627,7 +627,10 @@
 	if (m_inputState == INPUTSTATE_CONFIRM_DISCONNECTION)
 	{
 		if (ch == 'y' or ch == 'Y')
-			disconnected();
+		{
+			m_session.disconnect();
+			m_disconnectCallback(true);
+		}
 		else if (ch == 'n' or ch == 'N')
 			set_input_state (INPUTSTATE_NORMAL);
 

mercurial