Call the connectionTerminated() callback instead of trying to handle termination ourselves

This commit is contained in:
Cameron Gutman 2013-12-29 01:19:56 -05:00
parent b0d5b9c767
commit 6f8306cc18

View File

@ -366,8 +366,7 @@ public class NvConnection {
try { try {
inputStream.sendKeyboardInput(keyMap, keyDirection, modifier); inputStream.sendKeyboardInput(keyMap, keyDirection, modifier);
} catch (IOException e) { } catch (IOException e) {
listener.displayMessage(e.getMessage()); listener.connectionTerminated(e);
NvConnection.this.stop();
} }
} }
}); });