Skip to content

Commit 6a7dec8

Browse files
author
oleksiys
committed
+ don't forget to shutdown the idlechecker thread
1 parent 6c6ba66 commit 6a7dec8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

providers/grizzly/src/main/java/org/asynchttpclient/providers/grizzly/GrizzlyAsyncHttpProvider.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ public void close() {
192192
}
193193
if (timeoutExecutor != null) {
194194
timeoutExecutor.stop();
195+
final ExecutorService threadPool = timeoutExecutor.getThreadPool();
196+
if (threadPool != null) {
197+
threadPool.shutdownNow();
198+
}
195199
}
196200
} catch (IOException ignored) { }
197201

0 commit comments

Comments
 (0)