瀏覽代碼

Fix for #1414

tags/v1.12.90
Brian P. Hinz 2 年之前
父節點
當前提交
7393e2c7c3
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      java/com/tigervnc/network/TcpSocket.java

+ 2
- 2
java/com/tigervnc/network/TcpSocket.java 查看文件

@@ -83,8 +83,8 @@ public class TcpSocket extends Socket {
Selector selector = Selector.open();
SelectionKey connect_key =
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) {

Set keys = selector.selectedKeys();

Loading…
取消
儲存