From 079cb08fb093894b3cf7beef5f16226ec11c3629 Mon Sep 17 00:00:00 2001 From: Raul Santelices Date: Thu, 18 Apr 2024 03:22:07 -0400 Subject: [PATCH] Fix false-alarm timeout exception when waiting for key exchange to complete (#912) Co-authored-by: Jeroen van Erp --- src/main/java/net/schmizz/concurrent/Promise.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/schmizz/concurrent/Promise.java b/src/main/java/net/schmizz/concurrent/Promise.java index 5b8372ca1..bae1741b8 100644 --- a/src/main/java/net/schmizz/concurrent/Promise.java +++ b/src/main/java/net/schmizz/concurrent/Promise.java @@ -104,7 +104,8 @@ public void clear() { lock.lock(); try { pendingEx = null; - deliver(null); + log.debug("Clearing <<{}>>", name); + val = null; } finally { lock.unlock(); }