aboutsummaryrefslogtreecommitdiff
path: root/src/server/worldserver/Main.cpp
diff options
context:
space:
mode:
authorMachiavelli <none@none>2010-08-23 18:15:01 +0200
committerMachiavelli <none@none>2010-08-23 18:15:01 +0200
commit2a57bc9cdc125d8997f60e04de8410a5ef82525c (patch)
tree335b19fc5a47bedc61e0834d7b8b447c31208e37 /src/server/worldserver/Main.cpp
parent050f85b2c60a455b9326bd2c1461d3537fa0bae5 (diff)
- Fix potential singleton memory deallocation problems
- Fix ¨mysql_global_end() 1 thread didn´t exit¨ error Author: Derex --HG-- branch : trunk
Diffstat (limited to 'src/server/worldserver/Main.cpp')
-rw-r--r--src/server/worldserver/Main.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/server/worldserver/Main.cpp b/src/server/worldserver/Main.cpp
index 71fd88ce7df..fd6ecdda8fa 100644
--- a/src/server/worldserver/Main.cpp
+++ b/src/server/worldserver/Main.cpp
@@ -74,6 +74,8 @@ void usage(const char *prog)
/// Launch the Trinity server
extern int main(int argc, char **argv)
{
+ ACE::init();
+
///- Command line parsing to get the configuration file name
char const* cfg_file = _TRINITY_CORE_CONFIG;
int c=1;
@@ -144,12 +146,16 @@ extern int main(int argc, char **argv)
///- and run the 'Master'
/// \todo Why do we need this 'Master'? Can't all of this be in the Main as for Realmd?
- return sMaster.Run();
+ int ret = sMaster.Run();
// at sMaster return function exist with codes
// 0 - normal shutdown
// 1 - shutdown at error
// 2 - restart command used, this code can be used by restarter for restart Trinityd
+
+ ACE::fini();
+
+ return ret;
}
/// @}