Handle return value of kill_process

Only clear process handle if the process was actually killed.
This commit is contained in:
Robert Müller 2023-03-10 17:59:13 +01:00
parent a0c61a1b60
commit 128d3e4758

View file

@ -293,7 +293,9 @@ void CMenus::KillServer()
{ {
if(m_ServerProcess.m_Process) if(m_ServerProcess.m_Process)
{ {
kill_process(m_ServerProcess.m_Process); if(kill_process(m_ServerProcess.m_Process))
m_ServerProcess.m_Process = INVALID_PROCESS; {
m_ServerProcess.m_Process = INVALID_PROCESS;
}
} }
} }