From: Christopher Date: Thu, 2 Apr 2020 19:22:14 +0000 (-0500) Subject: fix for edge case with no live callees X-Git-Url: http://git.entropealabs.com/?a=commitdiff_plain;h=6cbbf5b44ff10565a4d1da05176de3690410c1d0;p=wampex_router.git fix for edge case with no live callees --- diff --git a/lib/router/session.ex b/lib/router/session.ex index bcb8d7e..42fb4ad 100644 --- a/lib/router/session.ex +++ b/lib/router/session.ex @@ -731,6 +731,7 @@ defmodule Wampex.Router.Session do end defp get_live_callee(_proxy, [], _index, 0), do: {:error, :no_live_callees} + defp get_live_callee(_proxy, [], _index, _), do: {:error, :no_live_callees} defp get_live_callee(proxy, callees, index, tries) do {_id, {pid, node}} = c = Enum.at(callees, index)