Skip to content

Commit

Permalink
Reschedule live stream server shutdown on lead request
Browse files Browse the repository at this point in the history
  • Loading branch information
ku1ik committed Apr 12, 2024
1 parent ec8e9a8 commit 9e48c39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/asciinema/streaming/live_stream_server.ex
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ defmodule Asciinema.Streaming.LiveStreamServer do

@impl true
def handle_call(:lead, {pid, _} = _from, state) do
state = reschedule_shutdown(state)

{:reply, :ok, %{state | producer: pid}}
end

Expand Down

0 comments on commit 9e48c39

Please sign in to comment.