diff options
author | Mark D. Roth <roth@google.com> | 2016-12-09 09:57:20 -0800 |
---|---|---|
committer | Mark D. Roth <roth@google.com> | 2016-12-09 09:57:20 -0800 |
commit | 0ee1dbbfa9b1b1d595eb6a91be564679d5d3df78 (patch) | |
tree | c045c58013dcbdae8d7547f7269512c6f704cd4c | |
parent | 42841414fa9f8352e273473303ea95ba9f38c3b4 (diff) |
Catch the case where we were shutdown after a handoff.
-rw-r--r-- | src/core/ext/transport/chttp2/server/chttp2_server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ext/transport/chttp2/server/chttp2_server.c b/src/core/ext/transport/chttp2/server/chttp2_server.c index 4a2ec52cea..c7e1ddcc42 100644 --- a/src/core/ext/transport/chttp2/server/chttp2_server.c +++ b/src/core/ext/transport/chttp2/server/chttp2_server.c @@ -139,7 +139,7 @@ static void on_handshake_done(grpc_exec_ctx *exec_ctx, void *arg, const char *error_str = grpc_error_string(error); gpr_log(GPR_ERROR, "Handshaking failed: %s", error_str); grpc_error_free_string(error_str); - if (error == GRPC_ERROR_NONE) { + if (error == GRPC_ERROR_NONE && args->endpoint != NULL) { // We were shut down after handshaking completed successfully, so // destroy the endpoint here. // TODO(ctiller): It is currently necessary to shutdown endpoints |