If we have closed the transport, dont try reading

pull/1520/head
Craig Tiller 10 years ago
parent ae35546dda
commit c354c51cf4
  1. 6
      src/core/transport/chttp2_transport.c

@ -1928,8 +1928,10 @@ static void recv_data(void *tp, gpr_slice *slices, size_t nslices,
break;
case GRPC_ENDPOINT_CB_OK:
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);
keep_reading = 1;
break;

Loading…
Cancel
Save