Removed the disconnection change in Interface::handle_input(), not sure where that even came from protocol5

Wed, 20 Jul 2016 13:25:54 +0300

author
Teemu Piippo <teemu@compsta2.com>
date
Wed, 20 Jul 2016 13:25:54 +0300
branch
protocol5
changeset 135
966c09c34ae1
parent 134
644935ff6bc1
child 136
8fb1c657e0b0

Removed the disconnection change in Interface::handle_input(), not sure where that even came from

sources/interface.cpp file | annotate | diff | comparison | revisions
--- 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