Changeset

7419:325c03f5481b

net.server_event: Collect entire one line function on one line
author Kim Alvefur <zash@zash.se>
date Wed, 04 May 2016 15:20:33 +0200
parents 7399:066a4dfdac18
children 7420:3fc5560557a5
files net/server_event.lua
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_event.lua	Tue Apr 19 19:00:19 2016 +0200
+++ b/net/server_event.lua	Wed May 04 15:20:33 2016 +0200
@@ -588,10 +588,7 @@
 					interface.eventwrite = addevent( base, interface.conn, EV_WRITE, interface.writecallback, cfg.WRITE_TIMEOUT )
 				end
 				interface.eventreadtimeout = addevent( base, nil, EV_TIMEOUT,
-				function( )
-					interface:_close()
-				end, cfg.READ_TIMEOUT
-				)
+					function( ) interface:_close() end, cfg.READ_TIMEOUT)
 				debug( "wantwrite during read attempt, reg it in writecallback but dont know what really happens next..." )
 				-- to be honest i dont know what happens next, if it is allowed to first read, the write etc...
 			else  -- connection was closed or fatal error