diff src/viewer_swing/java/com/glavsoft/viewer/Viewer.java @ 395:704ac9e79e25

Call startVNCConnectionWithSocket for directedServerChangeReqeust
author innparusu
date Tue, 29 Sep 2015 18:46:45 +0900
parents 7d55adebcacb
children 28d67bbfa9f1
line wrap: on
line diff
--- a/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java	Sat Sep 26 17:58:50 2015 +0900
+++ b/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java	Tue Sep 29 18:46:45 2015 +0900
@@ -223,7 +223,7 @@
         connectionPresenter = new ConnectionPresenter(hasJsch, allowInteractive);
         connectionPresenter.setNoConnection(noConnection);
         connectionPresenter.addModel("ConnectionParamsModel", connectionParams);
-        connectionPresenter.startVNCConnection(this, false);
+        connectionPresenter.startVNCConnection(this, false, null, null);
     }
 
     @Override
@@ -327,14 +327,14 @@
         new Thread(new Runnable() {
             @Override
             public void run() {
-                connectionPresenter.startVNCConnection(v, false);
+                connectionPresenter.startVNCConnection(v, false, null, null);
             }
         }, "ServerChangeThread").start();
     }
 
     public void changeToDirectConnectedServer(String hostName, Reader is, Writer os) {
         final ConnectionPresenter connectionPresenter = createNewConnectionPresenter(hostName, (short)-1);
-        connectionPresenter.startVNCConnection(this, true);
+        connectionPresenter.startVNCConnection(this, true, is, os);
     };
 
     private ConnectionPresenter createNewConnectionPresenter(String hostName, short newVNCServerId) {