diff -r 3bd32eec3d57 -r b78c0ca832a9 sources/interface.cpp --- a/sources/interface.cpp Wed May 27 21:15:52 2015 +0300 +++ b/sources/interface.cpp Sat Jan 09 02:20:28 2016 +0200 @@ -640,10 +640,7 @@ if (CurrentInputState == INPUTSTATE_CONFIRM_DISCONNECTION) { if (ch == 'y' or ch == 'Y') - { - Session.disconnect(); - DisconnectConfirmFunction(); - } + disconnected(); else if (ch == 'n' or ch == 'N') set_input_state (INPUTSTATE_NORMAL); @@ -1028,3 +1025,11 @@ NeedInputRender = true; } } + +// ------------------------------------------------------------------------------------------------- +// +void Interface::disconnected() +{ + Session.disconnect(); + set_input_state (INPUTSTATE_NORMAL); +}