Browse Source

make sure we actually throw caught execptions in java viewer

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4856 3789f03b-4d11-0410-bbf8-ca57d06f2519
tags/v1.2.90
Brian Hinz 12 years ago
parent
commit
93464bcc33

+ 1
- 1
java/com/tigervnc/network/SocketDescriptor.java View File

@@ -185,7 +185,7 @@ public class SocketDescriptor extends SocketChannel
channel.configureBlocking(false);
selector = Selector.open();
} catch (java.io.IOException e) {
System.out.println(e.toString());
throw new Exception(e.toString());
}
try {
channel.register(selector, SelectionKey.OP_READ | SelectionKey.OP_WRITE );

+ 1
- 2
java/com/tigervnc/network/TcpListener.java View File

@@ -116,8 +116,7 @@ public class TcpListener extends SocketListener {
return null;
}
} catch (IOException e) {
//throw SocketException("unable to accept new connection", errorNumber);
System.out.println(e.toString());
throw new SocketException("unable to accept new connection: "+e.toString());
}

// Disable Nagle's algorithm, to reduce latency

+ 1
- 1
java/com/tigervnc/rfb/CSecurityTLS.java View File

@@ -128,7 +128,7 @@ public class CSecurityTLS extends CSecurity {
try {
manager = new SSLEngineManager(engine, is, os);
} catch(java.lang.Exception e) {
System.out.println(e.toString());
throw new Exception(e.toString());
}

try {

Loading…
Cancel
Save