Skip to content

Commit cf85526

Browse files
committed
Merge remote-tracking branch 'origin/rework-orphan-wrapper-pr' into rework-orphan-wrapper-pr
2 parents 20d9eff + cdaca1d commit cf85526

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/java/io/grpc/internal/ManagedChannelOrphanWrapper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,13 @@ public ManagedChannel shutdown() {
7272

7373
@Override
7474
public ManagedChannel shutdownNow() {
75+
ManagedChannel result = super.shutdownNow();
7576
phantom.clearSafely();
7677
// This dummy check prevents the JIT from collecting 'this' too early
7778
if (this.getClass() == null) {
7879
throw new AssertionError();
7980
}
80-
return super.shutdownNow();
81+
return result;
8182
}
8283

8384
@VisibleForTesting

0 commit comments

Comments
 (0)