Logging: Switch to a different sleep function

This fixes a freeze with zink when automatic logging is enabled

I didn't test this on Windows, so please report any issues there
pull/908/head
Echo J 1 year ago committed by flightlessmango
parent 7c54ea819c
commit ba7e2cb313

@ -254,7 +254,8 @@ void Logger::upload_last_logs() {
}
void autostart_log(int sleep) {
os_time_sleep(sleep * 1000000);
// os_time_sleep() causes freezes with zink + autologging :frog_donut:
this_thread::sleep_for(chrono::seconds(sleep));
logger->start_logging();
}

Loading…
Cancel
Save