Merge branch 'master' of github.com:FreeRDP/FreeRDP into channels

This commit is contained in:
Marc-André Moreau
2012-10-02 11:02:09 -04:00
2 changed files with 4 additions and 1 deletions

View File

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

View File

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