plugins.adhoc: Add missing return in error case

Tue, 28 May 2013 15:14:50 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Tue, 28 May 2013 15:14:50 +0100
changeset 340
0ce227f6034c
parent 339
72fbfb0367e9
child 341
a95890d86fe4

plugins.adhoc: Add missing return in error case

plugins/adhoc.lua file | annotate | diff | comparison | revisions
--- 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;

mercurial