summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-02-15 14:53:46 +0100
committerHaru <haru@dotalux.com>2016-02-15 14:53:46 +0100
commit75e99a05fe1b520ec0f1d963ac658cc8d03bd262 (patch)
tree87ea863078877bf8a00fd41d359dcf0d45f22e71
parentda58cbc111e9ee0eb418b2b670491341db85a17c (diff)
downloadhercules-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>
-rw-r--r--src/char/char.c9
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);