summaryrefslogtreecommitdiffhomepage
path: root/compat/sleep.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'compat/sleep.cpp')
-rw-r--r--compat/sleep.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/compat/sleep.cpp b/compat/sleep.cpp
index 6a22adeb..4ec61db5 100644
--- a/compat/sleep.cpp
+++ b/compat/sleep.cpp
@@ -11,11 +11,13 @@ namespace portable
OTR_COMPAT_EXPORT void sleep(int milliseconds)
{
if (milliseconds > 0)
+ {
#ifdef _WIN32
Sleep(milliseconds);
#else
usleep(unsigned(milliseconds) * 1000U); // takes microseconds
#endif
+ }
}
}