# HG changeset patch # User Kim Alvefur # Date 1540665893 -7200 # Node ID 57637247356d5b58416395a2c03f040b54503b51 # Parent 867e40b82409efb355802158a4fdb26750b79c6d net.server_epoll: Shuffle variables earlier to improve readability diff -r 867e40b82409 -r 57637247356d net/server_epoll.lua --- a/net/server_epoll.lua Sat Oct 27 17:36:51 2018 +0200 +++ b/net/server_epoll.lua Sat Oct 27 20:44:53 2018 +0200 @@ -475,8 +475,8 @@ 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);