diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ladmin/ladmin.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ladmin/ladmin.c b/src/ladmin/ladmin.c index 107d98d09..3f75edca8 100644 --- a/src/ladmin/ladmin.c +++ b/src/ladmin/ladmin.c @@ -3267,8 +3267,7 @@ int parse_fromlogin(int fd) { printf("Impossible to have a connection with the login-server [%s:%d] !\n", loginserverip, loginserverport); ladmin_log("Impossible to have a connection with the login-server [%s:%d] !" RETCODE, loginserverip, loginserverport); } - close(fd); - delete_session(fd); + do_close(fd); exit (0); } @@ -4368,7 +4367,6 @@ int ladmin_config_read(const char *cfgName) { void do_final(void) { if (already_exit_function == 0) { - delete_session(login_fd); if (defaultlanguage == 'F') { printf("\033[0m----Fin de Ladmin (fin normale avec fermeture de tous les fichiers).\n"); @@ -4379,6 +4377,7 @@ void do_final(void) { } already_exit_function = 1; + do_close(login_fd); } } |