Software /
code /
prosody
Changeset
9321:146dc1e4c7ff
net.server_epoll: Simplify minimal string representation
.conn might just be the FD sometimes
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 15 Sep 2018 14:27:38 +0200 |
parents | 9320:8cc498cb0df7 |
children | 9322:4ce972d77c53 |
files | net/server_epoll.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/net/server_epoll.lua Sat Sep 15 14:24:09 2018 +0200 +++ b/net/server_epoll.lua Sat Sep 15 14:27:38 2018 +0200 @@ -132,7 +132,7 @@ 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