From 4ab5aaf1429e80d967ffc242f071f609b06b2519 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 23 Jan 2020 16:33:47 -0800 Subject: [PATCH] Mark the delivery thread daemonic. --- src/python/grpcio/grpc/_channel.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/python/grpcio/grpc/_channel.py b/src/python/grpcio/grpc/_channel.py index 7c55c2fd7e8..f5c6656823a 100644 --- a/src/python/grpcio/grpc/_channel.py +++ b/src/python/grpcio/grpc/_channel.py @@ -1240,6 +1240,7 @@ def _spawn_delivery(state, callbacks): state.connectivity, callbacks, )) + delivering_thread.setDaemon(True) delivering_thread.start() state.delivering = True