Changeset

340:0ce227f6034c

plugins.adhoc: Add missing return in error case
author Matthew Wild <mwild1@gmail.com>
date Tue, 28 May 2013 15:14:50 +0100
parents 339:72fbfb0367e9
children 341:a95890d86fe4
files plugins/adhoc.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/adhoc.lua	Sat May 11 18:42:13 2013 +0200
+++ b/plugins/adhoc.lua	Tue May 28 15:14:50 2013 +0100
@@ -80,6 +80,7 @@
 	if result.type == "error" then
 		self.status = "canceled";
 		self.callback(self, {});
+		return;
 	end
 	local command = result:get_child("command", xmlns_commands);
 	self.status = command.attr.status;