Browse Source

Fix for #1414

tags/v1.12.90
Brian P. Hinz 2 years ago
parent
commit
7393e2c7c3
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      java/com/tigervnc/network/TcpSocket.java

+ 2
- 2
java/com/tigervnc/network/TcpSocket.java View File

Selector selector = Selector.open(); Selector selector = Selector.open();
SelectionKey connect_key = SelectionKey connect_key =
sock.socket().getChannel().register(selector, SelectionKey.OP_CONNECT); sock.socket().getChannel().register(selector, SelectionKey.OP_CONNECT);
// Try for the connection for 250ms
while (selector.select(250) > 0) {
// Try for the connection for 3000ms
while (selector.select(3000) > 0) {
while (!result) { while (!result) {


Set keys = selector.selectedKeys(); Set keys = selector.selectedKeys();

Loading…
Cancel
Save