Merge pull request #26 from DrAndrey/master
Fix bug with name of sleep function
This commit is contained in:
commit
bed63208af
@ -200,7 +200,11 @@ utils::TCPSocket AllreduceBase::ConnectTracker(void) const {
|
|||||||
utils::Socket::Error("Connect");
|
utils::Socket::Error("Connect");
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "retry connect to ip(retry time %d): [%s]\n", retry, tracker_uri.c_str());
|
fprintf(stderr, "retry connect to ip(retry time %d): [%s]\n", retry, tracker_uri.c_str());
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
Sleep(1);
|
||||||
|
#else
|
||||||
sleep(1);
|
sleep(1);
|
||||||
|
#endif
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user