tres/secure_channel: fix handler for error reason

This commit is contained in:
Eishun Kondoh 2019-03-12 00:00:25 +09:00
parent f3d2ab1fb7
commit 4c12b0cef1

View file

@ -603,7 +603,7 @@ defmodule Tres.SecureChannel do
{:stop, :normal, %{state_data | socket: nil}}
end
defp close_connection(:features_timeout, state_data) do
defp close_connection(:features_handshake_timeout, state_data) do
debug("connection terminated: Features handshake timed out")
{:stop, :normal, %{state_data | socket: nil}}
end