Skip to content

Commit

Permalink
fix: player disconnecting properly
Browse files Browse the repository at this point in the history
  • Loading branch information
murilo09 committed Jan 8, 2025
1 parent cf65381 commit 404eaeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/creatures/players/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2049,7 +2049,7 @@ void Player::sendPing() {
setAttackedCreature(nullptr);
}

if (noPongTime >= 60000 && canLogout() && g_creatureEvents().playerLogout(static_self_cast<Player>())) {
if (noPongTime >= 60000 && g_creatureEvents().playerLogout(static_self_cast<Player>())) {
g_logger().info("Player {} has been kicked due to ping timeout. (has client: {})", getName(), client != nullptr);
if (client) {
client->logout(true, true);
Expand Down

0 comments on commit 404eaeb

Please sign in to comment.