Permalink
Browse files

- desktop sharing doesn't stop when the applet is tunneling. Catch t…

…he exception and stop the applet.
  • Loading branch information...
1 parent 8547360 commit dbf02ba36e4d9ebe1913a52e92a842c07621c4b2 @ritzalam ritzalam committed Feb 4, 2016
@@ -232,8 +232,14 @@ private void processNextMessageToSend(Message message) {
long end = System.currentTimeMillis();
System.out.println("[HTTP " + id + "] Sending " + changedBlocks.length + " blocks took " + (end - start) + " millis");
+ } catch (java.io.FileNotFoundException e) {
+ System.out.println("java.io.FileNotFoundException: While sending block data.");
+ e.printStackTrace();
+ listener.networkException(1, ExitCode.CONNECTION_TO_DESKSHARE_SERVER_DROPPED);
} catch (IOException e) {
+ System.out.println("IOException: While sending block data.");
e.printStackTrace();
+ listener.networkException(1, ExitCode.CONNECTION_TO_DESKSHARE_SERVER_DROPPED);
} catch (ConnectionException e) {
System.out.println("ERROR: Failed to send block data.");
}

0 comments on commit dbf02ba

Please sign in to comment.