Fixed missing return statement.

This commit is contained in:
rakshasa
2025-05-03 17:58:01 +02:00
committed by Jari Sundell
parent 4c63cee7a2
commit 877c00d54e
+3 -1
View File
@@ -63,8 +63,10 @@ Window::resize(int x, int y, int w, int h) {
void
Window::schedule_update(unsigned int wait_seconds) {
if (wait_seconds == 0)
if (wait_seconds == 0) {
m_slot_schedule(this, torrent::utils::ceil_seconds(torrent::this_thread::cached_time() + 100ms));
return;
}
m_slot_schedule(this, torrent::utils::ceil_seconds(torrent::this_thread::cached_time() + 1s*wait_seconds));
}