Explorar el Código

Check the correct stream if there is more data pending

The input stream might no longer be the raw socket, so we need to
query what's currently active. That wrapping stream might have its
own buffering and may have more data even if the socket is drained.
tags/v1.10.90
Pierre Ossman hace 4 años
padre
commit
10c40dbc86
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      vncviewer/CConn.cxx

+ 1
- 1
vncviewer/CConn.cxx Ver fichero

@@ -266,7 +266,7 @@ void CConn::socketEvent(FL_SOCKET fd, void *data)
// Also check if we need to stop reading and terminate
if (should_exit())
break;
} while (cc->sock->inStream().checkNoWait(1));
} while (cc->getInStream()->checkNoWait(1));
} catch (rdr::EndOfStream& e) {
vlog.info("%s", e.str());
exit_vncviewer();

Cargando…
Cancelar
Guardar