aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Tim Emiola <temiola@google.com>2015-04-16 14:07:34 -0700
committerGravatar Tim Emiola <temiola@google.com>2015-04-16 14:07:34 -0700
commitbf6d78c8e4908670de1fe02eaa639dde93166816 (patch)
tree76a4cadbfecb1913a5261fb7dd923e5a3a9b7424
parent321871ee6e09373723b400b28e6d08bd18fac629 (diff)
Fixes error with the keep-alive
-rw-r--r--src/ruby/lib/grpc/generic/rpc_server.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ruby/lib/grpc/generic/rpc_server.rb b/src/ruby/lib/grpc/generic/rpc_server.rb
index fa21d77080..bc2211ef7e 100644
--- a/src/ruby/lib/grpc/generic/rpc_server.rb
+++ b/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.