summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/elixir/lib/task/supervised.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/elixir/lib/task/supervised.ex b/lib/elixir/lib/task/supervised.ex
index 3826342bb..f9b6e1cd5 100644
--- a/lib/elixir/lib/task/supervised.ex
+++ b/lib/elixir/lib/task/supervised.ex
@@ -34,7 +34,7 @@ defmodule Task.Supervised do
_ = if mref, do: Process.demonitor(mref, [:flush])
send(owner_pid, {ref, invoke_mfa(owner, mfa)})
- {:DOWN, ^mref, _, _, reason} when is_reference(mref) ->
+ {:DOWN, ^mref, _, _, reason} ->
exit({:shutdown, reason})
after
# There is a race condition on this operation when working across