Skip to content

Commit 867868c

Browse files
committed
Remove leftowver continuation
1 parent 3a66159 commit 867868c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/membrane/core/parent/lifecycle_controller.ex

+7-7
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ defmodule Membrane.Core.Parent.LifecycleController do
4343

4444
activate_syncs(state.children)
4545

46-
{pinged_children, state} =
47-
Enum.flat_map_reduce(state.children, state, fn
48-
{child, %{ready?: true, terminating?: false, pid: pid}}, state ->
46+
pinged_children =
47+
state.children
48+
|> Enum.flat_map(fn
49+
{child_name, %{ready?: true, terminating?: false, pid: pid}} ->
4950
Message.send(pid, :play)
50-
state = put_in(state, [:children, child, :playback], :playing)
51-
{[child], state}
51+
[child_name]
5252

53-
_other_entry, state ->
54-
{[], state}
53+
_other_entry ->
54+
[]
5555
end)
5656

5757
state = %{state | playback: :playing}

0 commit comments

Comments
 (0)