Skip to content

Commit e883101

Browse files
committed
update state checking
1 parent 823c73c commit e883101

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session

java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/VRpcImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,7 @@ public void start(ReqT req, VRpcCallContext ctx, VRpcListener<RespT> listener) {
168168

169169
void handleSessionClose(VRpcResult result) {
170170
synchronized (lock) {
171-
if (state != State.STARTED && state != State.CANCELLED) {
172-
logger.warning("tried to close a vRPC after it was already closed state: " + state);
171+
if (state == State.CLOSED) {
173172
return;
174173
}
175174
state = State.CLOSED;

0 commit comments

Comments
 (0)