core/moduleapi.lua
changeset 11827 36a7a3137d41
parent 11826 bdabb0425d77
child 11925 89aef37fca54
--- a/core/moduleapi.lua	Fri Sep 24 20:17:31 2021 +0200
+++ b/core/moduleapi.lua	Fri Sep 24 20:26:21 2021 +0200
@@ -421,8 +421,8 @@
 			return;
 		end
 
-		self:hook(result_event, result_handler);
-		self:hook(error_event, error_handler);
+		self:hook(result_event, result_handler, 1);
+		self:hook(error_event, error_handler, 1);
 
 		local timeout_handle = self:add_timer(timeout or 120, function ()
 			reject(errors.new({