mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Handle return value of kill_process
Only clear process handle if the process was actually killed.
This commit is contained in:
parent
a0c61a1b60
commit
128d3e4758
|
@ -293,7 +293,9 @@ void CMenus::KillServer()
|
|||
{
|
||||
if(m_ServerProcess.m_Process)
|
||||
{
|
||||
kill_process(m_ServerProcess.m_Process);
|
||||
if(kill_process(m_ServerProcess.m_Process))
|
||||
{
|
||||
m_ServerProcess.m_Process = INVALID_PROCESS;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue