Fixes error with the keep-alive

pull/1302/head
Tim Emiola 10 years ago
parent 321871ee6e
commit bf6d78c8e4
  1. 3
      src/ruby/lib/grpc/generic/rpc_server.rb

@ -386,9 +386,8 @@ module GRPC
@workers.size.times { schedule { throw :exit } }
@stopped = true
keep_alive = 5
@stop_mutex.synchronize do
@stop_cond.wait(@stop_mutex, keep_alive) if @workers.size > 0
@stop_cond.wait(@stop_mutex, @keep_alive) if @workers.size > 0
end
# Forcibly shutdown any threads that are still alive.

Loading…
Cancel
Save