Bug fix on failure condition

pull/8365/head
Vijay Pai 8 years ago
parent 65a9ef16ed
commit 075b18e77f
  1. 2
      include/grpc++/impl/codegen/sync_stream.h

@ -606,7 +606,7 @@ class ServerSplitStreamer GRPC_FINAL
using WriterInterface<ResponseType>::Write;
bool Write(const ResponseType& response,
const WriteOptions& options) GRPC_OVERRIDE {
return !read_done_ && body_.Write(response, options);
return read_done_ && body_.Write(response, options);
}
private:

Loading…
Cancel
Save