Skip to content

Commit

Permalink
Fix bug with name of sleep function
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey committed Nov 17, 2015
1 parent e81a11d commit 3a6be65
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/allreduce_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,12 @@ 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;
}
}
Expand Down

0 comments on commit 3a6be65

Please sign in to comment.