From 75e99a05fe1b520ec0f1d963ac658cc8d03bd262 Mon Sep 17 00:00:00 2001
From: Haru <haru@dotalux.com>
Date: Mon, 15 Feb 2016 14:53:46 +0100
Subject: Replaced a call to sleep() with HSleep()

Signed-off-by: Haru <haru@dotalux.com>
---
 src/char/char.c | 9 +--------
 1 file changed, 1 insertion(+), 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);
-- 
cgit v1.2.3-70-g09d2