diff options
Diffstat (limited to 'src/char_sql/char.c')
-rw-r--r-- | src/char_sql/char.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c index a301bb46f..f93db50af 100644 --- a/src/char_sql/char.c +++ b/src/char_sql/char.c @@ -3888,8 +3888,10 @@ void do_final(void) { gm_account = 0; } - delete_session(login_fd); - delete_session(char_fd); + if (login_fd > 0) + do_close(login_fd); + if (char_fd > 0) + do_close(char_fd); char_db_->destroy(char_db_, NULL); online_char_db->destroy(online_char_db, NULL); |