From 2ba51125520664a26eec48325f1b3b041359bb24 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 19 Apr 2016 18:20:39 +0200 Subject: net.server_event: Return the correct value as timeout --- net/server_event.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net') diff --git a/net/server_event.lua b/net/server_event.lua index 9da2e910..59bd269a 100644 --- a/net/server_event.lua +++ b/net/server_event.lua @@ -549,7 +549,7 @@ do -- data possibly written from ondrain return EV_WRITE, cfg.WRITE_TIMEOUT elseif interface.eventreadtimeout then - return EV_WRITE, EV_TIMEOUT + return EV_WRITE, cfg.WRITE_TIMEOUT end interface.eventwrite = nil return -1 -- cgit v1.2.3