Restart keepalive streams (#38863)

This commit is contained in:
Eric Severance authored and GitHub committed 2020-09-03 12:22:00 -04:00
1 parent fbbfd46fb8
commit 9baa7c6c24
3 files changed
+73 -8

No files matched your search

@@ -171,6 +171,10 @@ class Stream:
from .worker import stream_worker
if self._thread is None or not self._thread.isAlive():
if self._thread is not None:
# The thread must have crashed/exited. Join to clean up the
# previous thread.
self._thread.join(timeout=0)
self._thread_quit = threading.Event()
self._thread = threading.Thread(
name="stream_worker",