Changeset

9696:ed0917381b4d

net.server_epoll: Bail on callback error An error calling a callback would be considered a truthy return value, which is not right.
author Kim Alvefur <zash@zash.se>
date Sat, 08 Dec 2018 21:28:48 +0100
parents 9695:5ec4eaf76de8
children 9697:2db341f7c5fc
files net/server_epoll.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_epoll.lua	Sat Dec 08 21:17:39 2018 +0100
+++ b/net/server_epoll.lua	Sat Dec 08 21:28:48 2018 +0100
@@ -180,6 +180,7 @@
 	local ok, err = pcall(listener, self, ...);
 	if not ok then
 		log("error", "Error calling on%s: %s", what, err);
+		return;
 	end
 	return err;
 end