From be4a69630f6115f8d501008a2fcecb739bbfee28 Mon Sep 17 00:00:00 2001 From: "Kenneth J. Shackleton" Date: Sun, 1 Sep 2024 15:25:08 +0100 Subject: [PATCH] Remove superfluous attempt to schedule eviction for the SingleObjectPool when the pool is now empty. Signed-off-by: Kenneth J. Shackleton --- .../main/kotlin/com/bloomberg/selekt/pools/SingleObjectPool.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/selekt-java/src/main/kotlin/com/bloomberg/selekt/pools/SingleObjectPool.kt b/selekt-java/src/main/kotlin/com/bloomberg/selekt/pools/SingleObjectPool.kt index a2c278ab67..efbcc0a9a0 100644 --- a/selekt-java/src/main/kotlin/com/bloomberg/selekt/pools/SingleObjectPool.kt +++ b/selekt-java/src/main/kotlin/com/bloomberg/selekt/pools/SingleObjectPool.kt @@ -97,7 +97,6 @@ class SingleObjectPool>( } }?.let { factory.destroyObject(it) - attemptScheduleEviction() } @GuardedBy("mutex")