mirror of https://github.com/grpc/grpc-java.git
core: JumpToApplicationThreadServerStreamListener should not close context (#3055)
Calling CancellableContext#close() multiple times does not cause problems, but is unnecessary here. The return value of getListener() is a ServerStreamListenerImpl, which already calls CancellableContext#cancel() inside of the finally block of ServerStreamListener#closed().
This commit is contained in:
parent
82fce837e4
commit
c0fc6785c1
|
|
@ -585,9 +585,6 @@ public final class ServerImpl extends io.grpc.Server implements WithLogId {
|
|||
callExecutor.execute(new ContextRunnable(context) {
|
||||
@Override
|
||||
public void runInContext() {
|
||||
if (status.isOk()) {
|
||||
context.cancel(status.getCause());
|
||||
}
|
||||
getListener().closed(status);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue