Changeset

7223:f911f929ca6c

net.server_event: Return true from conn:resume() to indicate success
author Kim Alvefur <zash@zash.se>
date Wed, 02 Mar 2016 16:30:46 +0100
parents 7222:168d03dd09c7
children 7224:07a4c807a94a 7228:b5b7ae2901e6
files net/server_event.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_event.lua	Wed Mar 02 16:30:05 2016 +0100
+++ b/net/server_event.lua	Wed Mar 02 16:30:46 2016 +0100
@@ -291,6 +291,7 @@
 		self:_lock(self.nointerface, false, self.nowriting);
 		if self.readcallback and not self.eventread then
 			self.eventread = addevent( base, self.conn, EV_READ, self.readcallback, cfg.READ_TIMEOUT );  -- register callback
+			return true;
 		end
 	end