Diff

net/server_event.lua @ 8384:4a5c6f6214ee

net.server_event: Split long line [luacheck]
author Kim Alvefur <zash@zash.se>
date Fri, 10 Nov 2017 05:50:03 +0100
parent 8314:1d2149d84c72
child 8529:257fd322fc9f
line wrap: on
line diff
--- 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