mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-10 05:36:22 +08:00
#5964 Fix multiplatform sleep
This commit is contained in:
@@ -131,7 +131,7 @@ App::run(int argc, char** argv)
|
||||
LOG((CLOG_CRIT "A display invalid exception error occurred: %s\n", die.what()));
|
||||
// display invalid exceptions can occur when going to sleep. When this process exits, the
|
||||
// UI will restart us instantly. We don't really want that behevior, so we quies for a bit
|
||||
(void)sleep(10);
|
||||
ARCH->sleep(10);
|
||||
}
|
||||
catch (std::runtime_error& re) {
|
||||
LOG((CLOG_CRIT "A runtime error occurred: %s\n", re.what()));
|
||||
|
||||
Reference in New Issue
Block a user