Use usleep() instead of sleep(), MinGW complained.
This commit is contained in:
parent
8efc8dc961
commit
574b380dfc
3 changed files with 6 additions and 2 deletions
|
|
@ -193,7 +193,7 @@ static void timeout_handler(int fd, short events, void *event) {
|
|||
|
||||
if(contradicting_del_edge > 100 && contradicting_add_edge > 100) {
|
||||
logger(LOG_WARNING, "Possible node with same Name as us! Sleeping %d seconds.", sleeptime);
|
||||
sleep(sleeptime);
|
||||
usleep(sleeptime * 1000000LL);
|
||||
sleeptime *= 2;
|
||||
if(sleeptime < 0)
|
||||
sleeptime = 3600;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue