From 22a89deb8b5db0227d7313b902f4ce494152b9ad Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Sat, 5 Jul 2025 20:27:24 -0700 Subject: [PATCH] fix save game data timer --- src/Client.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Client.cc b/src/Client.cc index 03481927..f2836cfd 100644 --- a/src/Client.cc +++ b/src/Client.cc @@ -261,11 +261,12 @@ void Client::reschedule_save_game_data_timer() { return; } this->save_game_data_timer.expires_after(std::chrono::seconds(60)); - this->idle_timeout_timer.async_wait([this](std::error_code ec) { + this->save_game_data_timer.async_wait([this](std::error_code ec) { if (!ec) { if (this->character(false)) { this->save_all(); } + this->reschedule_save_game_data_timer(); } }); }