зеркало из https://github.com/github/putty.git
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:
Родитель
f4526fb5b0
Коммит
af38fcbfbc
|
@ -490,8 +490,7 @@ int do_eventsel_loop(HANDLE other_event)
|
||||||
else
|
else
|
||||||
otherindex = -1;
|
otherindex = -1;
|
||||||
|
|
||||||
n = MsgWaitForMultipleObjects(nallhandles, handles, FALSE, ticks,
|
n = WaitForMultipleObjects(nallhandles, handles, FALSE, ticks);
|
||||||
QS_POSTMESSAGE);
|
|
||||||
|
|
||||||
if ((unsigned)(n - WAIT_OBJECT_0) < (unsigned)nhandles) {
|
if ((unsigned)(n - WAIT_OBJECT_0) < (unsigned)nhandles) {
|
||||||
handle_got_event(handles[n - WAIT_OBJECT_0]);
|
handle_got_event(handles[n - WAIT_OBJECT_0]);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче