diff options
author | Craig Tiller <ctiller@google.com> | 2016-05-31 22:05:00 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-05-31 22:05:00 -0700 |
commit | caad18024d93f3c12d3e7f4c3f903e7df5a4c5c8 (patch) | |
tree | 486d4099fe23d5949a583efac6ac6eca416ea21d | |
parent | 2cdf0a8b912db8882c5f2a7c93ecde9e5a172073 (diff) |
Fix crash
-rw-r--r-- | src/core/ext/transport/chttp2/transport/chttp2_transport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ext/transport/chttp2/transport/chttp2_transport.c b/src/core/ext/transport/chttp2/transport/chttp2_transport.c index fba1f0e314..827d65f610 100644 --- a/src/core/ext/transport/chttp2/transport/chttp2_transport.c +++ b/src/core/ext/transport/chttp2/transport/chttp2_transport.c @@ -850,7 +850,7 @@ static void start_writing(grpc_exec_ctx *exec_ctx, grpc_chttp2_transport *t) { "start_writing:nothing_to_write"); } end_waiting_for_write(exec_ctx, t, GRPC_ERROR_CREATE("Nothing to write")); - if (!t->endpoint_reading) { + if (t->ep && !t->endpoint_reading) { destroy_endpoint(exec_ctx, t); } } |