mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Fix LyX server on Windows
On some recent Windows versions, GetLastError() may also return NO_ERROR instead of ERROR_IO_PENDING during an overlapped write operation to a pipe. This was confusing the state machine in Server.cpp so that replies to commands were scheduled but were never actually output.
This commit is contained in:
parent
ab72f94595
commit
cf5f2661dc
@ -356,7 +356,7 @@ bool LyXComm::pipeServer()
|
||||
|
||||
error = GetLastError();
|
||||
|
||||
if (success && error == ERROR_IO_PENDING) {
|
||||
if (success && (error == ERROR_IO_PENDING || error == NO_ERROR)) {
|
||||
// The write operation is still pending.
|
||||
// We get here when a reader is started
|
||||
// well before a reply is ready, so delay
|
||||
|
Loading…
Reference in New Issue
Block a user