diff --git a/src/aoclient.cpp b/src/aoclient.cpp index b425683..55f1a58 100644 --- a/src/aoclient.cpp +++ b/src/aoclient.cpp @@ -324,9 +324,9 @@ Server* AOClient::getServer() { return server; } void AOClient::onAfkTimeout() { - if (!is_afk) - sendServerMessage("You are now AFK."); + sendServerMessage("You are now AFK."); is_afk = true; + afk_timer->stop(); } AOClient::~AOClient() {