aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2015-04-22 00:03:49 +0200
committerShauren <shauren.trinity@gmail.com>2015-04-22 00:03:49 +0200
commit0147f37eb06e71076f0570317397c09ca3efef10 (patch)
treef224a14ad0501a273952a3e26a7f8949de047c31 /src
parentdab8e12413623a4eef5628265471a93b54a1b339 (diff)
Core/Battlenet: Fixed possible shutdown crash
Diffstat (limited to 'src')
-rw-r--r--src/server/bnetserver/Main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/server/bnetserver/Main.cpp b/src/server/bnetserver/Main.cpp
index 6299ae802a7..20d1193b8e2 100644
--- a/src/server/bnetserver/Main.cpp
+++ b/src/server/bnetserver/Main.cpp
@@ -160,13 +160,14 @@ int main(int argc, char** argv)
// Close the Database Pool and library
StopDB();
- _ioService.reset();
-
TC_LOG_INFO("server.bnetserver", "Halting process...");
+
+ signals.clear();
+
+ _ioService.reset();
return 0;
}
-
/// Initialize connection to the database
bool StartDB()
{