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 056d0c31..62a96bce 100644 --- a/server/video-stream.cpp +++ b/server/video-stream.cpp @@ -930,6 +930,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; @@ -941,6 +943,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); } |