mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 05:27:19 +00:00
added returns
This commit is contained in:
parent
d085c0cf10
commit
1efbe2d2c0
@ -147,7 +147,8 @@ int main(int argc, char** argv) {
|
|||||||
delete Game::server;
|
delete Game::server;
|
||||||
delete Game::logger;
|
delete Game::logger;
|
||||||
|
|
||||||
return 0;
|
exit(EXIT_SUCCESS);
|
||||||
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
dLogger * SetupLogger() {
|
dLogger * SetupLogger() {
|
||||||
|
@ -154,7 +154,8 @@ int main(int argc, char** argv) {
|
|||||||
delete Game::server;
|
delete Game::server;
|
||||||
delete Game::logger;
|
delete Game::logger;
|
||||||
|
|
||||||
return 0;
|
exit(EXIT_SUCCESS);
|
||||||
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
dLogger * SetupLogger() {
|
dLogger * SetupLogger() {
|
||||||
|
@ -320,7 +320,8 @@ int main(int argc, char** argv) {
|
|||||||
std::this_thread::sleep_until(t);
|
std::this_thread::sleep_until(t);
|
||||||
}
|
}
|
||||||
FinalizeShutdown();
|
FinalizeShutdown();
|
||||||
exit(0);
|
exit(EXIT_SUCCESS);
|
||||||
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
dLogger* SetupLogger() {
|
dLogger* SetupLogger() {
|
||||||
@ -740,7 +741,7 @@ void ShutdownSequence() {
|
|||||||
auto ticks = 0;
|
auto ticks = 0;
|
||||||
|
|
||||||
if (!Game::im) {
|
if (!Game::im) {
|
||||||
exit(0);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
Game::logger->Log("MasterServer", "Attempting to shutdown instances, max 60 seconds...\n");
|
Game::logger->Log("MasterServer", "Attempting to shutdown instances, max 60 seconds...\n");
|
||||||
@ -792,5 +793,6 @@ int FinalizeShutdown() {
|
|||||||
delete Game::server;
|
delete Game::server;
|
||||||
delete Game::logger;
|
delete Game::logger;
|
||||||
|
|
||||||
exit(0);
|
exit(EXIT_SUCCESS);
|
||||||
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user