Missed a file
Patched the server to allow shutdown from other threads git-svn-id: http://mc-server.googlecode.com/svn/trunk@657 0a769ca7-a7f5-676a-18bf-c427514a06d6master
parent
ff2225dee0
commit
2f3dc03005
|
@ -0,0 +1,6 @@
|
|||
function HandleStopCommand( Split, Player )
|
||||
Server = cRoot:Get():GetServer()
|
||||
Server:SendMessage( cChatColor.Green .. "Stopping the server..." )
|
||||
cRoot:Get():ServerCommand("stop")
|
||||
return true
|
||||
end
|
|
@ -149,7 +149,7 @@ void cRoot::Start()
|
|||
|
||||
LOG("Starting InputThread...");
|
||||
m_InputThread = new cThread( InputThread, this, "cRoot::InputThread" );
|
||||
m_InputThread->Start( true );
|
||||
m_InputThread->Start( false ); //we should NOT wait? Otherwise we can´t stop the server from other threads than the input thread
|
||||
|
||||
LOG("Initialization done, server running now.");
|
||||
while( !m_bStop && !m_bRestart ) // These are modified by external threads
|
||||
|
|
Loading…
Reference in New Issue