mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-12-04 15:23:32 +08:00
Fix CPU usage due to missing initialization of wfds.
This commit is contained in:
parent
c2eb63b071
commit
1301fa33c0
@ -293,6 +293,7 @@ int dfreerdp_run(freerdp* instance)
|
||||
|
||||
max_fds = 0;
|
||||
FD_ZERO(&rfds_set);
|
||||
FD_ZERO(&wfds_set);
|
||||
|
||||
for (i = 0; i < rcount; i++)
|
||||
{
|
||||
|
@ -451,6 +451,7 @@ int xfreerdp_run(freerdp* instance)
|
||||
|
||||
max_fds = 0;
|
||||
FD_ZERO(&rfds_set);
|
||||
FD_ZERO(&wfds_set);
|
||||
|
||||
for (i = 0; i < rcount; i++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user