aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_epoll.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-27 20:44:53 +0200
committerKim Alvefur <zash@zash.se>2018-10-27 20:44:53 +0200
commite0a5c81fb0f64d2761a2e5e0cca47b1a7656ea8f (patch)
treefa9ffd557a10e0b9a87c50d79e5cdcd42cbc74f6 /net/server_epoll.lua
parent6156a086d28b64aa2c90294ebedfbfba79311cb3 (diff)
downloadprosody-e0a5c81fb0f64d2761a2e5e0cca47b1a7656ea8f.tar.gz
prosody-e0a5c81fb0f64d2761a2e5e0cca47b1a7656ea8f.zip
net.server_epoll: Shuffle variables earlier to improve readability
Diffstat (limited to 'net/server_epoll.lua')
-rw-r--r--net/server_epoll.lua2
1 files changed, 1 insertions, 1 deletions
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);