From 96f2204b79d062e035dd094c2df1038a762175a6 Mon Sep 17 00:00:00 2001 From: in1tiate Date: Thu, 15 Apr 2021 06:42:14 -0500 Subject: [PATCH] more elegantly fix repeated AFKing --- src/aoclient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() {