aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php/lib/Grpc/ActiveCall.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/php/lib/Grpc/ActiveCall.php')
-rwxr-xr-xsrc/php/lib/Grpc/ActiveCall.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/php/lib/Grpc/ActiveCall.php b/src/php/lib/Grpc/ActiveCall.php
index e0ea43ab08..847cfee1ec 100755
--- a/src/php/lib/Grpc/ActiveCall.php
+++ b/src/php/lib/Grpc/ActiveCall.php
@@ -66,12 +66,7 @@ class ActiveCall {
* @param ByteBuffer $data The data to write
*/
public function write($data) {
- if($this->call->start_write($data,
- WRITE_ACCEPTED,
- $this->flags) != OP_OK) {
- // TODO(mlumish): more useful error
- throw new \Exception("Cannot call write after writesDone");
- }
+ $this->call->start_write($data, WRITE_ACCEPTED, $this->flags);
$this->completion_queue->pluck(WRITE_ACCEPTED, Timeval::inf_future());
}