Skip to content

Commit d65a800

Browse files
authored
Merge pull request #34 from andrepaes/add_new_handle_info_guard
Include a function clause to handle when a ssl socket is closed
2 parents 8d60e06 + db7dc99 commit d65a800

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)