From 6bab4e4c8e882adcb2ba9fd2ba5b7f7056b8ca14 Mon Sep 17 00:00:00 2001 From: Eishun Kondoh Date: Tue, 12 Mar 2019 00:00:25 +0900 Subject: [PATCH] tres/secure_channel: fix handler for error reason --- lib/tres/secure_channel.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tres/secure_channel.ex b/lib/tres/secure_channel.ex index c89aaff..afcf94d 100644 --- a/lib/tres/secure_channel.ex +++ b/lib/tres/secure_channel.ex @@ -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