Commit 9b93a0890c7c8246c84f9286fe3c65731d7bb371
1 parent
8af65151
Exists in
master
and in
1 other branch
Fixing windows builds.
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
client/src/session/remote/session.cc
| @@ -408,7 +408,12 @@ | @@ -408,7 +408,12 @@ | ||
| 408 | 408 | ||
| 409 | while(time(nullptr) < end) { | 409 | while(time(nullptr) < end) { |
| 410 | 410 | ||
| 411 | +#ifdef _WIN32 | ||
| 412 | + Sleep(1000); | ||
| 413 | +#else | ||
| 411 | sleep(1); | 414 | sleep(1); |
| 415 | +#endif // _WIN32 | ||
| 416 | + | ||
| 412 | if(getConnectionState() == TN3270::DISCONNECTED) | 417 | if(getConnectionState() == TN3270::DISCONNECTED) |
| 413 | throw std::runtime_error("Disconnected"); | 418 | throw std::runtime_error("Disconnected"); |
| 414 | 419 |