Merge pull request #8833 from apolcyn/ruby_wait_to_finish_writes

wait for write loop to finish at end of ruby read loop, on client side calls
pull/8916/head
apolcyn 8 years ago committed by GitHub
commit 82870cad46
  1. 4
      src/ruby/lib/grpc/generic/bidi_call.rb

@ -208,6 +208,10 @@ module GRPC
GRPC.logger.debug('bidi-read-loop: finished')
@reads_complete = true
finished
# Make sure that the write loop is done done before finishing the call.
# Note that blocking is ok at this point because we've already received
# a status
@enq_th.join if is_client
end
end
end

Loading…
Cancel
Save