-warn
This commit is contained in:
1 parent
603cfd8c58
commit
8030161ea6
3 files changed
+18
-8
No files matched your search
+2
-1
@@ -941,7 +941,8 @@ void uasync_poll(struct UASYNC* ua, int timeout_tb) {
|
||||
#ifdef _WIN32
|
||||
Sleep(timeout_ms);
|
||||
#else
|
||||
usleep(timeout_ms * 1000);
|
||||
struct timespec ts = { timeout_ms / 1000, (timeout_ms % 1000) * 1000000 };
|
||||
nanosleep(&ts, NULL);
|
||||
#endif
|
||||
}
|
||||
process_timeouts(ua);
|
||||
|
||||
Reference in new issue
Block a user