Skip to content

Commit

Permalink
fix: Hackney leaks {ssl_closed, _} back to oc_reporter
Browse files Browse the repository at this point in the history
tracked here: benoitc/hackney#464
  • Loading branch information
bipthelin committed Sep 11, 2019
1 parent 67d2075 commit 6682690
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/oc_reporter.erl
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ handle_info(report_spans, State=#state{reporters=Reporters,
erlang:cancel_timer(Ref),
Ref1 = erlang:send_after(SendInterval, self(), report_spans),
send_spans(Reporters),
{noreply, State#state{timer_ref=Ref1}}.
{noreply, State#state{timer_ref=Ref1}};
handle_info({ssl_closed, _}, State) ->
{noreply, State}.

code_change(_, State, _) ->
{ok, State}.
Expand Down

0 comments on commit 6682690

Please sign in to comment.