# HG changeset patch # User Kim Alvefur # Date 1510289403 -3600 # Node ID 4a5c6f6214eed777de8891ec0098c906f6b787a2 # Parent d967d6f2ad00705e5fbe5f19fb676cd1357131f6 net.server_event: Split long line [luacheck] diff -r d967d6f2ad00 -r 4a5c6f6214ee net/server_event.lua --- a/net/server_event.lua Fri Nov 10 05:46:39 2017 +0100 +++ b/net/server_event.lua Fri Nov 10 05:50:03 2017 +0100 @@ -223,7 +223,8 @@ _ = 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