diff src/main/java/com/glavsoft/rfb/protocol/Protocol.java @ 326:1d4d5055a288

add error message, add assure stream close.
author oc
date Sun, 01 Feb 2015 15:30:17 +0900
parents a237c7e3b7ca
children 42fcc9419498
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/protocol/Protocol.java	Sun Feb 01 06:44:56 2015 +0900
+++ b/src/main/java/com/glavsoft/rfb/protocol/Protocol.java	Sun Feb 01 15:30:17 2015 +0900
@@ -302,7 +302,7 @@
             try {
                 senderThread.join();
             } catch (InterruptedException e) {
-                // nop
+                System.out.println("any thread has interrupted the current thread");
             }
             senderTask = null;
         }
@@ -316,7 +316,7 @@
             try {
                 receiverThread.join();
             } catch (InterruptedException e) {
-                // nop
+                System.out.println("any thread has interrupted the current thread");
             }
             receiverTask = null;
         }