From d8280002947c462b0bb731c12c20efc301ccb891 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sat, 16 Feb 2013 19:30:21 -0200 Subject: Minor changes; check description Login and Char servers will now exit when failing to bind to the port (as map server has always done). Moved Sql_HerculesUpdateCheck() to be run before "server is 'ready' " thing for layout-purposes. Signed-off-by: shennetsind --- src/map/clif.c | 2 +- src/map/map.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map') diff --git a/src/map/clif.c b/src/map/clif.c index 6d9e57bd2..7b4025b9d 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -17119,7 +17119,7 @@ int do_init_clif(void) { set_defaultparse(clif_parse); if( make_listen_bind(bind_ip,map_port) == -1 ) { - ShowFatalError("can't bind game port\n"); + ShowFatalError("Failed to bind to port '"CL_WHITE"%d"CL_RESET"'\n",map_port); exit(EXIT_FAILURE); } diff --git a/src/map/map.c b/src/map/map.c index dde922f39..901234687 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -3985,10 +3985,10 @@ int do_init(int argc, char *argv[]) if (battle_config.pk_mode) ShowNotice("Server is running on '"CL_WHITE"PK Mode"CL_RESET"'.\n"); - ShowStatus("Server is '"CL_GREEN"ready"CL_RESET"' and listening on port '"CL_WHITE"%d"CL_RESET"'.\n\n", map_port); - Sql_HerculesUpdateCheck(mmysql_handle); + ShowStatus("Server is '"CL_GREEN"ready"CL_RESET"' and listening on port '"CL_WHITE"%d"CL_RESET"'.\n\n", map_port); + if( runflag != CORE_ST_STOP ) { shutdown_callback = do_shutdown; -- cgit v1.2.3-70-g09d2