libfreerdp-core/transport: check buffer even no bytes received in nonblocking.

This commit is contained in:
Vic Lee 2011-08-12 23:09:58 +08:00
parent 7da790a1fa
commit 47e0eb5464

View File

@ -220,7 +220,7 @@ int transport_check_fds(rdpTransport* transport)
STREAM* received;
status = transport_read_nonblocking(transport);
if (status <= 0)
if (status < 0)
return status;
while ((pos = stream_get_pos(transport->recv_buffer)) > 0)