feat(Core/Time): remove inherited ACE Time (#3455)
Co-authored-by: Viste <viste02@gmail.com>
This commit is contained in:
parent
8b3621779e
commit
e15a493927
20 changed files with 157 additions and 58 deletions
|
|
@ -15,9 +15,11 @@
|
|||
#include "Log.h"
|
||||
#include "RASocket.h"
|
||||
#include "Util.h"
|
||||
#include "Duration.h"
|
||||
#include "World.h"
|
||||
#include "SHA1.h"
|
||||
#include "ServerMotd.h"
|
||||
#include <thread>
|
||||
|
||||
RASocket::RASocket()
|
||||
{
|
||||
|
|
@ -49,7 +51,7 @@ int RASocket::handle_close(ACE_HANDLE /*handle*/, ACE_Reactor_Mask /*mask*/)
|
|||
// RASocket::commandfinished to be completed. Calling destroy() before the latter function ends
|
||||
// will lead to using a freed pointer -> crash.
|
||||
while (_commandExecuting)
|
||||
ACE_OS::sleep(1);
|
||||
std::this_thread::sleep_for(1s);
|
||||
|
||||
destroy();
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue