Skip to content

Commit

Permalink
Revert "Fix timer running late (#685)"
Browse files Browse the repository at this point in the history
This reverts commit 168f57e.
  • Loading branch information
FelonEkonom committed Jan 23, 2024
1 parent ebf574c commit ff72c7b
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions lib/membrane/core/element.ex
Original file line number Diff line number Diff line change
Expand Up @@ -256,20 +256,7 @@ defmodule Membrane.Core.Element do
end

defp do_handle_info(Message.new(:timer_tick, timer_id), state) do
# Guarding the `TimerController.handle_tick/2` invocation is
# required since there might be a case in which `handle_tick`
# callback's implementation returns demand action.
# In this scenario, without this guard, there would a possibility that
# the `handle_buffer` would be called immediately, returning
# some action that would affect the timer and the original state
# of the timer, set with actions returned from `handle_tick`,
# would be overwritten with that action.
#
# For more information see: https://github.com/membraneframework/membrane_core/issues/670
state = %{state | supplying_demand?: true}
state = TimerController.handle_tick(timer_id, state)
state = %{state | supplying_demand?: false}
state = Membrane.Core.Element.DemandHandler.handle_delayed_demands(state)
{:noreply, state}
end

Expand Down

0 comments on commit ff72c7b

Please sign in to comment.