]> git.lyx.org Git - lyx.git/blobdiff - src/Server.cpp
More requires --> required, for C++2a.
[lyx.git] / src / Server.cpp
index 52eebfeee7847be984433cd5f17435a7e1347ff5..d4a2120b6ea5e3c0550b5348a59766971259898a 100644 (file)
@@ -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