Skip to content
Snippets Groups Projects
Commit bc2c63cd authored by Yang Gao's avatar Yang Gao
Browse files

Merge pull request #1520 from ctiller/cancel-after-invoke

If we have closed the transport, dont try reading
parents e1b5f9b2 c354c51c
No related branches found
No related tags found
No related merge requests found
...@@ -1927,8 +1927,10 @@ static void recv_data(void *tp, gpr_slice *slices, size_t nslices, ...@@ -1927,8 +1927,10 @@ static void recv_data(void *tp, gpr_slice *slices, size_t nslices,
break; break;
case GRPC_ENDPOINT_CB_OK: case GRPC_ENDPOINT_CB_OK:
lock(t); lock(t);
for (i = 0; i < nslices && process_read(t, slices[i]); i++) if (t->cb) {
; for (i = 0; i < nslices && process_read(t, slices[i]); i++)
;
}
unlock(t); unlock(t);
keep_reading = 1; keep_reading = 1;
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment