diff --git a/lib/asciinema/streaming/live_stream_server.ex b/lib/asciinema/streaming/live_stream_server.ex index 21b96a03e..5f9a86016 100644 --- a/lib/asciinema/streaming/live_stream_server.ex +++ b/lib/asciinema/streaming/live_stream_server.ex @@ -160,14 +160,19 @@ defmodule Asciinema.Streaming.LiveStreamServer do def handle_info(:update_stream, state) do Process.send_after(self(), :update_stream, @update_stream_interval) - {cols, rows} = state.vt_size stream = - Streaming.update_live_stream(state.stream, - current_viewer_count: state.viewer_count, - cols: cols, - rows: rows - ) + case state.vt_size do + {cols, rows} -> + Streaming.update_live_stream(state.stream, + current_viewer_count: state.viewer_count, + cols: cols, + rows: rows + ) + + nil -> + state.stream + end {:noreply, %{state | stream: stream}} end