diff src/main/java/com/glavsoft/rfb/protocol/Protocol.java @ 482:73b52954efc9

handling vncconnection failure rfb/protocol/Protocol.java HG: changed src/main/java/com/glavsoft/ rfb/protocol/ReceiverTask.java HG: changed src/viewer_swing/ java/com/glavsoft/viewer/swing/SwingRfbConnectionWorker.java
author oshiro
date Thu, 24 Jan 2019 17:19:05 +0900
parents 432e2967eaab
children b2f734f3eaf1
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/protocol/Protocol.java	Wed Jan 23 17:57:16 2019 +0900
+++ b/src/main/java/com/glavsoft/rfb/protocol/Protocol.java	Thu Jan 24 17:19:05 2019 +0900
@@ -212,6 +212,7 @@
 
         receiverThread = new Thread(receiverTask, "RfbReceiverTask");
         receiverThread.start();
+        sendRefreshMessage();
     }
 
     private void correctServerPixelFormat() {
@@ -280,7 +281,7 @@
     public void sendRefreshMessage() {
         if (receiverTask!=null) {
             sendMessage(receiverTask.fullscreenFbUpdateIncrementalRequest);
-            logger.fine("sent: full FB Refresh");
+            logger.fine("sent: incremental FB Refresh");
         }
     }
 
@@ -294,12 +295,12 @@
     public synchronized void cleanUpSession() {
         if (senderTask != null) {
             // stop senderTask to VNCServer task.
-            senderTask.stopTask(); 
-            try {
-                senderThread.join();
-            } catch (InterruptedException e) {
-                System.out.println("any thread has interrupted the current thread");
-            }
+            senderTask.stopTask();
+            //try {
+            //    senderThread.join();
+            //} catch (InterruptedException e) {
+            //    System.out.println("any thread has interrupted the current thread");
+            //}
             senderTask = null;
         }
         stopReceiverTask();