aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby
diff options
context:
space:
mode:
authorGravatar ganmacs <ganmacs@gmail.com>2018-08-28 16:21:58 +0900
committerGravatar ganmacs <ganmacs@gmail.com>2018-08-28 16:24:36 +0900
commit005cb34614a9084a0230bfe62daa2e83b735b595 (patch)
treed254c01ee216af79276ab64a63feb0cec3bca7d0 /src/ruby
parent35501ad1df5799be17cc41894a0dc1d3ed43a8f0 (diff)
Rescue GRPC::Core::CallError not to kill the worker threads
Diffstat (limited to 'src/ruby')
-rw-r--r--src/ruby/lib/grpc/generic/rpc_server.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ruby/lib/grpc/generic/rpc_server.rb b/src/ruby/lib/grpc/generic/rpc_server.rb
index 838ac45927..3b5a0ce27f 100644
--- a/src/ruby/lib/grpc/generic/rpc_server.rb
+++ b/src/ruby/lib/grpc/generic/rpc_server.rb
@@ -136,7 +136,7 @@ module GRPC
begin
blk, args = worker_queue.pop
blk.call(*args)
- rescue StandardError => e
+ rescue StandardError, GRPC::Core::CallError => e
GRPC.logger.warn('Error in worker thread')
GRPC.logger.warn(e)
end