aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_event.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-11-10 05:50:03 +0100
committerKim Alvefur <zash@zash.se>2017-11-10 05:50:03 +0100
commit76c84b80d660186967267fc4dfa6bdbaed32dd5f (patch)
tree0c3b8d4cbe2f2cac15d0e9844a12cf6474adf929 /net/server_event.lua
parent48f828c117dec5b8cc14afa9fea7ff150fa960de (diff)
downloadprosody-76c84b80d660186967267fc4dfa6bdbaed32dd5f.tar.gz
prosody-76c84b80d660186967267fc4dfa6bdbaed32dd5f.zip
net.server_event: Split long line [luacheck]
Diffstat (limited to 'net/server_event.lua')
-rw-r--r--net/server_event.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index 50b0cee6..fd456deb 100644
--- a/net/server_event.lua
+++ b/net/server_event.lua
@@ -223,7 +223,8 @@ function interface_mt:_destroy() -- close this interface + events and call last
_ = self.eventsession and self.eventsession:close( )
_ = self.eventwritetimeout and self.eventwritetimeout:close( )
_ = self.eventreadtimeout and self.eventreadtimeout:close( )
- _ = self.ondisconnect and self:ondisconnect( self.fatalerror ~= "client to close" and self.fatalerror) -- call ondisconnect listener (wont be the case if handshake failed on connect)
+ -- call ondisconnect listener (wont be the case if handshake failed on connect)
+ _ = self.ondisconnect and self:ondisconnect( self.fatalerror ~= "client to close" and self.fatalerror)
_ = self.conn and self.conn:close( ) -- close connection
_ = self._server and self._server:counter(-1);
self.eventread, self.eventwrite = nil, nil