Explorar el Código

Fix for #1414

tags/v1.12.90
Brian P. Hinz hace 2 años
padre
commit
7393e2c7c3
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      java/com/tigervnc/network/TcpSocket.java

+ 2
- 2
java/com/tigervnc/network/TcpSocket.java Ver fichero

@@ -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();

Cargando…
Cancelar
Guardar