From 037dceb599d57dd9fbf1c8bb9097d7d9f7bbdbbe Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Sun, 16 Sep 2018 15:35:25 -0400 Subject: [PATCH] Fix potential race --- .../velocitypowered/proxy/server/ping/PingSessionHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/server/ping/PingSessionHandler.java b/proxy/src/main/java/com/velocitypowered/proxy/server/ping/PingSessionHandler.java index 4ed4dae44..60f2ea158 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/server/ping/PingSessionHandler.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/server/ping/PingSessionHandler.java @@ -62,6 +62,7 @@ public class PingSessionHandler implements MinecraftSessionHandler { @Override public void exception(Throwable throwable) { + completed = true; result.completeExceptionally(throwable); } }