diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/Pool.java b/jetty-util/src/main/java/org/eclipse/jetty/util/Pool.java index bd7be03f263..b5c8e7c2cee 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/Pool.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/Pool.java @@ -190,7 +190,7 @@ public class Pool implements AutoCloseable, Dumpable // Iterate the entries, remove overused ones and collect a list of the closeable removed ones. List copy; - try (Locker.Lock l = locker.lock()) + try (AutoLock l = lock.lock()) { if (closed) return;