From 85bfb1c2e67f79ddd0c7fcddf8f770543fe263d8 Mon Sep 17 00:00:00 2001 From: "Brian P. Hinz" Date: Thu, 13 Nov 2014 21:33:32 -0500 Subject: [PATCH] Fixed issue where java viewer in listen mode did not exit properly. The viewer count was being incorrectly incremented, preventing the listening viewer from exiting when the window was closed. --- java/com/tigervnc/vncviewer/VncViewer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/com/tigervnc/vncviewer/VncViewer.java b/java/com/tigervnc/vncviewer/VncViewer.java index 0df39c87..1e0f2230 100644 --- a/java/com/tigervnc/vncviewer/VncViewer.java +++ b/java/com/tigervnc/vncviewer/VncViewer.java @@ -457,7 +457,7 @@ public class VncViewer extends javax.swing.JApplet while (true) { Socket new_sock = listener.accept(); if (new_sock != null) - newViewer(this, new_sock); + newViewer(this, new_sock, true); } } -- 2.39.5