Skip to content

Commit

Permalink
Merge pull request #38 from membraneframework/jp/fix-packet-request-o…
Browse files Browse the repository at this point in the history
…n-closed-socket

Remove pattern match on request_packet call
  • Loading branch information
Qizot authored Dec 29, 2022
2 parents 7799f54 + 7231c5b commit 02f38e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/membrane_rtmp_plugin/rtmp/source/message_handler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ defmodule Membrane.RTMP.MessageHandler do
end

defp request_packet(socket) do
:ok = :inet.setopts(socket, active: :once)
:inet.setopts(socket, active: :once)
end

defp get_media_actions(rtmp_header, data, state) do
Expand Down
2 changes: 1 addition & 1 deletion lib/membrane_rtmp_plugin/rtmp/source/source.ex
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ defmodule Membrane.RTMP.Source do

@impl true
def handle_demand(_pad, _size, _unit, _ctx, state) when state.socket_ready? do
:ok = :inet.setopts(state.socket, active: :once)
:inet.setopts(state.socket, active: :once)
{:ok, state}
end

Expand Down

0 comments on commit 02f38e1

Please sign in to comment.