Skip to content

Commit d425420

Browse files
author
jiangtaoli2016
committed
alts: fix lazychannel close
1 parent 06dd24e commit d425420

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

alts/src/main/java/io/grpc/alts/internal/AltsProtocolNegotiator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ synchronized Channel get() {
297297
/** Returns the cached channel to the channel pool. */
298298
synchronized void close() {
299299
if (channel != null) {
300-
channelPool.returnObject(channel);
300+
channel = channelPool.returnObject(channel);
301301
}
302302
}
303303
}

0 commit comments

Comments
 (0)