Fix a rare bug on shutdown.

This commit is contained in:
JoelKatz
2013-03-29 10:16:01 -07:00
parent 34005874ba
commit 24bc094cb1
2 changed files with 6 additions and 0 deletions

View File

@@ -50,6 +50,11 @@ public:
sMultiThreaded = true;
}
static void shutdown()
{
sMultiThreaded = false;
}
static bool isMultiThread()
{
return sMultiThreaded;

View File

@@ -265,6 +265,7 @@ int main(int argc, char* argv[])
setupServer();
NameThread("io");
startServer();
InstanceType::shutdown();
}
else
{