From ab441503c7e6e0991d53f70c786d2d83825ed12b Mon Sep 17 00:00:00 2001 From: mohammed jasem alaajel Date: Mon, 15 Apr 2024 05:23:38 +0400 Subject: [PATCH] correctly remove heartbeat on cleanup --- .../minecraft/redisbungee/api/ProxyDataManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/api/ProxyDataManager.java b/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/api/ProxyDataManager.java index 707b6fd..5892244 100644 --- a/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/api/ProxyDataManager.java +++ b/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/api/ProxyDataManager.java @@ -280,6 +280,7 @@ public abstract class ProxyDataManager implements Runnable { return; } for (UUID uuid : getProxyMembers(id)) plugin.fireEvent(plugin.createPlayerLeftNetworkEvent(uuid)); + this.heartbeats.remove(id); plugin.logInfo("Proxy {} has disconnected", id); }