summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorBrian P. Hinz <bphinz@users.sf.net>2014-11-13 21:33:32 -0500
committerBrian P. Hinz <bphinz@users.sf.net>2014-11-13 21:33:32 -0500
commit85bfb1c2e67f79ddd0c7fcddf8f770543fe263d8 (patch)
treef2f49ebb534595b59d4ce16e98f1bd6be79ca7ef /java
parentd5147453f7337792ac59a20a3db25abf9c4adf19 (diff)
downloadtigervnc-85bfb1c2e67f79ddd0c7fcddf8f770543fe263d8.tar.gz
tigervnc-85bfb1c2e67f79ddd0c7fcddf8f770543fe263d8.zip
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.
Diffstat (limited to 'java')
-rw-r--r--java/com/tigervnc/vncviewer/VncViewer.java2
1 files changed, 1 insertions, 1 deletions
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);
}
}