diff options
author | DDuarte <dnpd.dd@gmail.com> | 2014-08-05 15:23:42 +0100 |
---|---|---|
committer | DDuarte <dnpd.dd@gmail.com> | 2014-08-05 15:23:42 +0100 |
commit | 7e642220293396bd719cf748f6a345d4cc5f4054 (patch) | |
tree | de35dd3460424894d97c6f80676d1375fbcf2db7 /src/server/authserver/Main.cpp | |
parent | 66a8d41f59f24fe4cdc0bb7aa80faa2262e18972 (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.cpp | 2 |
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; } |