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 | 44b031c20742c79879ef172d5cd23c93fd5d53b1 (patch) | |
tree | d437ba58794fe0a443abda3bb0da927ea11370a3 /net | |
parent | cff0c75139dd2086697d403f6bc5cc3d535589b2 (diff) | |
download | prosody-44b031c20742c79879ef172d5cd23c93fd5d53b1.tar.gz prosody-44b031c20742c79879ef172d5cd23c93fd5d53b1.zip |
net.server_epoll: Simplify minimal string representation
.conn might just be the FD sometimes
Diffstat (limited to 'net')
-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 |