mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix a rare bug on shutdown.
This commit is contained in:
@@ -50,6 +50,11 @@ public:
|
||||
sMultiThreaded = true;
|
||||
}
|
||||
|
||||
static void shutdown()
|
||||
{
|
||||
sMultiThreaded = false;
|
||||
}
|
||||
|
||||
static bool isMultiThread()
|
||||
{
|
||||
return sMultiThreaded;
|
||||
|
||||
@@ -265,6 +265,7 @@ int main(int argc, char* argv[])
|
||||
setupServer();
|
||||
NameThread("io");
|
||||
startServer();
|
||||
InstanceType::shutdown();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user