From b4de031ae6136b18d65a91c49a5b75deb035ba20 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 27 Oct 2018 20:44:53 +0200 Subject: net.server_epoll: Shuffle variables earlier to improve readability --- net/server_epoll.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net') diff --git a/net/server_epoll.lua b/net/server_epoll.lua index 0d05aee1..4b40c7d5 100644 --- a/net/server_epoll.lua +++ b/net/server_epoll.lua @@ -475,8 +475,8 @@ function interface:tlshandskake() self:del(); local ok, conn, err = pcall(luasec.wrap, self.conn, self.tls_ctx); if not ok then - log("error", "Failed to initialize TLS: %s", conn); conn, err = ok, conn; + log("error", "Failed to initialize TLS: %s", err); end if not conn then self:on("disconnect", err); -- cgit v1.2.3