Diff

net/server_epoll.lua @ 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
parent 9695:5ec4eaf76de8
child 9823:b61ba4496923
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