Skip to content

Commit db7dc99

Browse files
author
André Paes
committed
include a function clause to handle when a ssl socket is closed
1 parent 6b2461d commit db7dc99

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/segment/batcher.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ defmodule Segment.Analytics.Batcher do
9191
{:noreply, {client, queue}}
9292
end
9393

94+
def handle_info({:ssl_closed, _msg}, state), do: {:no_reply, state}
95+
9496
# Helpers
9597
defp schedule_batch_send do
9698
Process.send_after(self(), :process_batch, Segment.Config.batch_every_ms())

0 commit comments

Comments
 (0)