diff options
author | Haru <haru@dotalux.com> | 2016-02-15 14:53:46 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-02-15 14:53:46 +0100 |
commit | 75e99a05fe1b520ec0f1d963ac658cc8d03bd262 (patch) | |
tree | 87ea863078877bf8a00fd41d359dcf0d45f22e71 /src/char/char.c | |
parent | da58cbc111e9ee0eb418b2b670491341db85a17c (diff) | |
download | hercules-75e99a05fe1b520ec0f1d963ac658cc8d03bd262.tar.gz hercules-75e99a05fe1b520ec0f1d963ac658cc8d03bd262.tar.bz2 hercules-75e99a05fe1b520ec0f1d963ac658cc8d03bd262.tar.xz hercules-75e99a05fe1b520ec0f1d963ac658cc8d03bd262.zip |
Replaced a call to sleep() with HSleep()
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/char/char.c')
-rw-r--r-- | src/char/char.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/char/char.c b/src/char/char.c index d05d13d4b..cdb2fe5ea 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -61,9 +61,6 @@ #include <stdio.h> #include <stdlib.h> #include <sys/types.h> -#ifndef WIN32 -# include <unistd.h> -#endif // private declarations char char_db[256] = "char"; @@ -3864,11 +3861,7 @@ void char_parse_frommap_request_stats_report(int fd) do { sockt->flush(sfd); -#ifdef WIN32 - Sleep(1); -#else - sleep(1); -#endif + HSleep(1); } while( !sockt->session[sfd]->flag.eof && sockt->session[sfd]->wdata_size ); sockt->close(sfd); |