Merge pull request #92208 from Calinou/linuxbsd-use-nanosleep

Use `OS::delay_usec()` to avoid using deprecated `usleep()` on Linux
This commit is contained in:
Rémi Verschelde 2024-05-30 11:47:51 +02:00
commit 1dab521f2d
No known key found for this signature in database
GPG key ID: C3336907360768E1
3 changed files with 6 additions and 6 deletions

View file

@ -591,7 +591,7 @@ void FreeDesktopPortalDesktop::_thread_monitor(void *p_ud) {
dbus_connection_read_write(portal->monitor_connection, 0);
}
usleep(50000);
OS::get_singleton()->delay_usec(50'000);
}
}