diff options
author | Kim Alvefur <zash@zash.se> | 2018-09-15 14:27:38 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-09-15 14:27:38 +0200 |
commit | db5cef1861060d85c17d0b29b639623a6d378e5a (patch) | |
tree | d437ba58794fe0a443abda3bb0da927ea11370a3 /net/server_epoll.lua | |
parent | d2bbc414c21a171dbc57aa80deb69abf7d4af6ef (diff) | |
download | prosody-db5cef1861060d85c17d0b29b639623a6d378e5a.tar.gz prosody-db5cef1861060d85c17d0b29b639623a6d378e5a.zip |
net.server_epoll: Simplify minimal string representation
.conn might just be the FD sometimes
Diffstat (limited to 'net/server_epoll.lua')
-rw-r--r-- | net/server_epoll.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua index c2f9ffe7..75fdd1c0 100644 --- a/net/server_epoll.lua +++ b/net/server_epoll.lua @@ -132,7 +132,7 @@ function interface_mt:__tostring() elseif self.sockname or self.peername then return ("FD %d (%s, %d)"):format(self:getfd(), self.sockname or self.peername, self.sockport or self.peerport); end - return ("%s FD %d"):format(tostring(self.conn), self:getfd()); + return ("FD %d"):format(self:getfd()); end -- Replace the listener and tell the old one |