Merge pull request #26 from DrAndrey/master

Fix bug with name of sleep function
This commit is contained in:
Tianqi Chen 2015-11-18 09:58:21 -08:00
commit bed63208af

View File

@ -200,7 +200,11 @@ utils::TCPSocket AllreduceBase::ConnectTracker(void) const {
utils::Socket::Error("Connect");
} else {
fprintf(stderr, "retry connect to ip(retry time %d): [%s]\n", retry, tracker_uri.c_str());
#ifdef _MSC_VER
Sleep(1);
#else
sleep(1);
#endif
continue;
}
}