Update ChannelFactory

Signed-off-by: Daemonxiao <735462752@qq.com>
Co-authored-by: iosmanthus <myosmanthustree@gmail.com>
This commit is contained in:
Daemonxiao 2022-06-20 19:43:50 +08:00
parent d92b4ff05f
commit c1dee04bb5
1 changed files with 6 additions and 5 deletions

View File

@ -363,11 +363,12 @@ public class ChannelFactory implements AutoCloseable {
}
connPool.clear();
if (certContext != null) {
recycler.shutdownNow();
if (recycler != null) {
recycler.shutdown();
}
if (certWatcher != null) {
certWatcher.close();
}
}
}
}