From 3a7736cd63e709a95179db08313a1e744dbdcb77 Mon Sep 17 00:00:00 2001 From: venkatanadhan gururaghavendran Date: Thu, 25 Jan 2024 16:08:54 +0530 Subject: [PATCH] DLPX-88676 SSHJ - Fix false-alarm timeout exception when waiting for key exchange to complete --- 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 5b8372ca..bae1741b 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(); }