File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
scala-client/src/main/scala/com/couchbase/client/scala/env Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1616
1717package com .couchbase .client .scala .env
1818
19- import java .util .concurrent .{Executors , ThreadFactory }
19+ import java .util .concurrent .{Executors , ThreadFactory , TimeUnit }
2020import com .couchbase .client .core
2121import com .couchbase .client .core .annotation .SinceCouchbase
2222import com .couchbase .client .core .annotation .Stability .{Uncommitted , Volatile }
@@ -401,6 +401,7 @@ class ClusterEnvironment(private[scala] val builder: ClusterEnvironment.Builder)
401401 if (! threadPool.isShutdown) {
402402 coreEnv.shutdown(timeout)
403403 threadPool.shutdownNow()
404+ threadPool.awaitTermination(timeout.toMillis, TimeUnit .MILLISECONDS )
404405 defaultScheduler.dispose()
405406 }
406407 }
You can’t perform that action at this time.
0 commit comments