1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +00:00

Experimental fix for `psftp-hang'. (Experimental only in that I haven't thought

about it very hard; it's a plausible fix for the observed cause of the extreme
CPU usage, being that we were asking to be notified of Windows messages and
then not dealing with them, plausibly leading to a loop. Works for me,
anyway.)

[originally from svn r7098]
This commit is contained in:
Jacob Nevins 2007-01-12 23:35:46 +00:00
parent f4526fb5b0
commit af38fcbfbc

View File

@ -490,8 +490,7 @@ int do_eventsel_loop(HANDLE other_event)
else
otherindex = -1;
n = MsgWaitForMultipleObjects(nallhandles, handles, FALSE, ticks,
QS_POSTMESSAGE);
n = WaitForMultipleObjects(nallhandles, handles, FALSE, ticks);
if ((unsigned)(n - WAIT_OBJECT_0) < (unsigned)nhandles) {
handle_got_event(handles[n - WAIT_OBJECT_0]);