From 2b6dd6a4f7d5eb8bdcf4413a430e1d8e85514af4 Mon Sep 17 00:00:00 2001 From: Brian Hinz Date: Wed, 25 Apr 2012 03:49:10 +0000 Subject: Spawn a new viewer on ClientRedirects, otherwise ConnParams may not be initialized correctly. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4895 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- java/com/tigervnc/vncviewer/CConn.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'java/com/tigervnc/vncviewer/CConn.java') diff --git a/java/com/tigervnc/vncviewer/CConn.java b/java/com/tigervnc/vncviewer/CConn.java index 154a719c..714dff04 100644 --- a/java/com/tigervnc/vncviewer/CConn.java +++ b/java/com/tigervnc/vncviewer/CConn.java @@ -388,9 +388,7 @@ public class CConn extends CConnection setServerPort(port); sock = new TcpSocket(host, port); vlog.info("Redirected to "+host+":"+port); - setStreams(sock.inStream(), sock.outStream()); - sock.inStream().setBlockCallback(this); - initialiseProtocol(); + viewer.newViewer(viewer, sock, true); } catch (java.lang.Exception e) { throw new Exception(e.toString()); } -- cgit v1.2.3