summaryrefslogtreecommitdiff
path: root/src/char/char.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/char/char.c')
-rw-r--r--src/char/char.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 22dd81d94..54fa75c68 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -4278,8 +4278,10 @@ void do_final(void) {
if(gm_account) aFree(gm_account);
if(char_dat) aFree(char_dat);
- delete_session(login_fd);
- delete_session(char_fd);
+ if (login_fd > 0)
+ do_close(login_fd);
+ if (char_fd > 0)
+ do_close(char_fd);
#ifdef ENABLE_SC_SAVING
status_final();