]> git.lyx.org Git - lyx.git/blobdiff - src/Server.cpp
Reorder a bit status messages, but they are still cleared at the end of LyXFunc
[lyx.git] / src / Server.cpp
index cc47b23c74b70e51252a5d95ad553a8fc80147eb..33c32ea19ceac317ebd26010e91b85c78fecd087 100644 (file)
@@ -415,6 +415,8 @@ bool LyXComm::checkStopServer(DWORD timeout)
 bool LyXComm::startPipe(DWORD index)
 {
        pipe_[index].pending_io = false;
+       pipe_[index].overlap.Offset = 0;
+       pipe_[index].overlap.OffsetHigh = 0;
 
        // Overlapped ConnectNamedPipe should return zero.
        if (ConnectNamedPipe(pipe_[index].handle, &pipe_[index].overlap)) {
@@ -664,8 +666,7 @@ void LyXComm::send(string const & msg)
                       << "\nLyXComm: Resetting connection" << endl;
                ReleaseMutex(outbuf_mutex_);
                closeConnection();
-               if (!checkStopServer())
-                       openConnection();
+               openConnection();
        }
 }