mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Merge branch 'master' of github.com:FreeRDP/FreeRDP into channels
This commit is contained in:
@@ -526,7 +526,7 @@ int wfreerdp_run(freerdp* instance)
|
||||
}
|
||||
|
||||
/* do the wait */
|
||||
if (MsgWaitForMultipleObjects(fds_count, fds, FALSE, 1, QS_ALLINPUT) == WAIT_FAILED)
|
||||
if (MsgWaitForMultipleObjects(fds_count, fds, FALSE, 1000, QS_ALLINPUT) == WAIT_FAILED)
|
||||
{
|
||||
printf("wfreerdp_run: WaitForMultipleObjects failed: 0x%04X\n", GetLastError());
|
||||
break;
|
||||
|
||||
@@ -390,6 +390,9 @@ int transport_check_fds(rdpTransport** ptransport)
|
||||
STREAM* received;
|
||||
rdpTransport* transport = *ptransport;
|
||||
|
||||
#ifdef _WIN32
|
||||
WSAResetEvent(transport->tcp->wsa_event);
|
||||
#endif
|
||||
wait_obj_clear(transport->recv_event);
|
||||
|
||||
status = transport_read_nonblocking(transport);
|
||||
|
||||
Reference in New Issue
Block a user