Current section
10 Versions
Jump to
Current section
10 Versions
Compare versions
4
files changed
+8
additions
-3
deletions
| @@ -23,7 +23,7 @@ The package can be installed by adding `firefighter` to your list of dependencie | |
| 23 23 | ```elixir |
| 24 24 | def deps do |
| 25 25 | [ |
| 26 | - {:firefighter, "~> 0.2.5"} |
| 26 | + {:firefighter, "~> 0.2.6"} |
| 27 27 | ] |
| 28 28 | end |
| 29 29 | ``` |
| @@ -29,4 +29,4 @@ | |
| 29 29 | {<<"optional">>,false}, |
| 30 30 | {<<"repository">>,<<"hexpm">>}, |
| 31 31 | {<<"requirement">>,<<"~> 1.2">>}]]}. |
| 32 | - {<<"version">>,<<"0.2.5">>}. |
| 32 | + {<<"version">>,<<"0.2.6">>}. |
| @@ -122,6 +122,11 @@ defmodule Firefighter do | |
| 122 122 | {:noreply, %{state | records: remaining, timer: timer}} |
| 123 123 | end |
| 124 124 | |
| 125 | + @impl GenServer |
| 126 | + def handle_info({:EXIT, _from, :normal = reason}, state) do |
| 127 | + {:stop, reason, state} |
| 128 | + end |
| 129 | + |
| 125 130 | @impl GenServer |
| 126 131 | def terminate(reason, %__MODULE__{timer: timer} = state) do |
| 127 132 | Process.cancel_timer(timer) |
| @@ -4,7 +4,7 @@ defmodule Firefighter.MixProject do | |
| 4 4 | def project do |
| 5 5 | [ |
| 6 6 | app: :firefighter, |
| 7 | - version: "0.2.5", |
| 7 | + version: "0.2.6", |
| 8 8 | elixir: "~> 1.7", |
| 9 9 | start_permanent: Mix.env() == :prod, |
| 10 10 | description: description(), |