aboutsummaryrefslogtreecommitdiff
path: root/src/server/authserver/Main.cpp
diff options
context:
space:
mode:
authorDDuarte <dnpd.dd@gmail.com>2014-08-05 15:23:42 +0100
committerDDuarte <dnpd.dd@gmail.com>2014-08-05 15:23:42 +0100
commit7e642220293396bd719cf748f6a345d4cc5f4054 (patch)
treede35dd3460424894d97c6f80676d1375fbcf2db7 /src/server/authserver/Main.cpp
parent66a8d41f59f24fe4cdc0bb7aa80faa2262e18972 (diff)
Auth/Main: Fix crashes on shutdown
"mutex destroyed while busy"
Diffstat (limited to 'src/server/authserver/Main.cpp')
-rw-r--r--src/server/authserver/Main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/authserver/Main.cpp b/src/server/authserver/Main.cpp
index 701792293de..f26c0342654 100644
--- a/src/server/authserver/Main.cpp
+++ b/src/server/authserver/Main.cpp
@@ -104,6 +104,7 @@ int main(int argc, char** argv)
if (sRealmList->size() == 0)
{
TC_LOG_ERROR("server.authserver", "No valid realms specified.");
+ StopDB();
return 1;
}
@@ -112,6 +113,7 @@ int main(int argc, char** argv)
if (port < 0 || port > 0xFFFF)
{
TC_LOG_ERROR("server.authserver", "Specified port out of allowed range (1-65535)");
+ StopDB();
return 1;
}