reset unsub to None on timeout (#22404)

This commit is contained in:
Jason Hunter authored and Pascal Vizeli committed 2019-03-26 08:39:09 +01:00
1 parent e85b089eff
commit baa4945944
1 file changed
+1
+1
View File
@@ -128,6 +128,7 @@ class StreamOutput:
@callback
def _timeout(self, _now=None):
"""Handle stream timeout."""
self._unsub = None
if self._stream.keepalive:
self.idle = True
self._stream.check_idle()