diff options
Diffstat (limited to 'server/video-stream.cpp')
-rw-r--r-- | server/video-stream.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/video-stream.cpp b/server/video-stream.cpp index e453f11d..f1a9051a 100644 --- a/server/video-stream.cpp +++ b/server/video-stream.cpp @@ -888,6 +888,8 @@ void video_stream_detach_and_stop(DisplayChannel *display) } } +extern bool got_event_stream_timeout; + void video_stream_timeout(DisplayChannel *display) { Ring *ring = &display->priv->streams; @@ -899,6 +901,7 @@ void video_stream_timeout(DisplayChannel *display) VideoStream *stream = SPICE_CONTAINEROF(item, VideoStream, link); item = ring_next(ring, item); if (now >= (stream->last_time + RED_STREAM_TIMEOUT)) { + got_event_stream_timeout = true; detach_video_stream_gracefully(display, stream, nullptr); video_stream_stop(display, stream); } |