Shared/Metric: Fix crash on shutdown
Fix crash on shutdown with metrics enabled but InfluxDB stopping before worldserver
This commit is contained in:
1 parent
9c3752c8f2
commit
4283252731
3 files changed
+6
-5
No files matched your search
@@ -232,7 +232,7 @@ extern int main(int argc, char** argv)
|
||||
std::shared_ptr<void> sMetricHandle(nullptr, [](void*)
|
||||
{
|
||||
TC_METRIC_EVENT("events", "Worldserver shutdown", "");
|
||||
sMetric->ForceSend();
|
||||
sMetric->Unload();
|
||||
});
|
||||
|
||||
sScriptMgr->SetScriptLoader(AddScripts);
|
||||
|
||||
Reference in new issue
Block a user