diff options
Diffstat (limited to 'src/char/loginif.c')
-rw-r--r-- | src/char/loginif.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/char/loginif.c b/src/char/loginif.c index 881c8f2ac..4eac78774 100644 --- a/src/char/loginif.c +++ b/src/char/loginif.c @@ -28,7 +28,7 @@ void loginif_reset(void) // TODO kick everyone out and reset everything or wait for connect and try to reacquire locks [FlavioJS] for( id = 0; id < ARRAYLENGTH(chr->server); ++id ) mapif->server_reset(id); - flush_fifos(); + sockt->flush_fifos(); exit(EXIT_FAILURE); } @@ -80,9 +80,8 @@ void do_init_loginif(void) void do_final_loginif(void) { - if( chr->login_fd != -1 ) - { - do_close(chr->login_fd); + if (chr->login_fd != -1) { + sockt->close(chr->login_fd); chr->login_fd = -1; } } |