Perform the clean up at the right place. Also put the event in the

nonsignaled state, otherwise after a shutdown the server would be
continually stopped...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31194 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2009-08-22 12:22:46 +00:00
parent 96a8d85c7c
commit cd475bad39

View File

@ -170,7 +170,6 @@ void LyXComm::pipeServer()
CloseHandle(inpipe);
}
CloseHandle(outpipe_);
CloseHandle(stopserver_);
}
@ -246,6 +245,8 @@ void LyXComm::closeConnection()
if (hpipe != INVALID_HANDLE_VALUE)
CloseHandle(hpipe);
ResetEvent(stopserver_);
CloseHandle(stopserver_);
ready_ = false;
}