Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
8383:d967d6f2ad00 | 8384:4a5c6f6214ee |
---|---|
221 _ = self.eventstarthandshake and self.eventstarthandshake:close( ) | 221 _ = self.eventstarthandshake and self.eventstarthandshake:close( ) |
222 _ = self.eventconnect and self.eventconnect:close( ) | 222 _ = self.eventconnect and self.eventconnect:close( ) |
223 _ = self.eventsession and self.eventsession:close( ) | 223 _ = self.eventsession and self.eventsession:close( ) |
224 _ = self.eventwritetimeout and self.eventwritetimeout:close( ) | 224 _ = self.eventwritetimeout and self.eventwritetimeout:close( ) |
225 _ = self.eventreadtimeout and self.eventreadtimeout:close( ) | 225 _ = self.eventreadtimeout and self.eventreadtimeout:close( ) |
226 _ = 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) | 226 -- call ondisconnect listener (wont be the case if handshake failed on connect) |
227 _ = self.ondisconnect and self:ondisconnect( self.fatalerror ~= "client to close" and self.fatalerror) | |
227 _ = self.conn and self.conn:close( ) -- close connection | 228 _ = self.conn and self.conn:close( ) -- close connection |
228 _ = self._server and self._server:counter(-1); | 229 _ = self._server and self._server:counter(-1); |
229 self.eventread, self.eventwrite = nil, nil | 230 self.eventread, self.eventwrite = nil, nil |
230 self.eventstarthandshake, self.eventhandshake, self.eventclose = nil, nil, nil | 231 self.eventstarthandshake, self.eventhandshake, self.eventclose = nil, nil, nil |
231 self.readcallback, self.writecallback = nil, nil | 232 self.readcallback, self.writecallback = nil, nil |