X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FServer.cpp;h=33c32ea19ceac317ebd26010e91b85c78fecd087;hb=aee4e7ba34d87f609ea50327449b3eb67731561a;hp=cc47b23c74b70e51252a5d95ad553a8fc80147eb;hpb=50423d0e7c9a6514946c9cbfc02602bcaee0bedb;p=lyx.git diff --git a/src/Server.cpp b/src/Server.cpp index cc47b23c74..33c32ea19c 100644 --- a/src/Server.cpp +++ b/src/Server.cpp @@ -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(); } }