Software / code / verse
Comparison
plugins/adhoc.lua @ 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 |
| parent | 309:6297d658769f |
| child | 341:a95890d86fe4 |
comparison
equal
deleted
inserted
replaced
| 339:72fbfb0367e9 | 340:0ce227f6034c |
|---|---|
| 78 | 78 |
| 79 function command_mt:_process_response(result) | 79 function command_mt:_process_response(result) |
| 80 if result.type == "error" then | 80 if result.type == "error" then |
| 81 self.status = "canceled"; | 81 self.status = "canceled"; |
| 82 self.callback(self, {}); | 82 self.callback(self, {}); |
| 83 return; | |
| 83 end | 84 end |
| 84 local command = result:get_child("command", xmlns_commands); | 85 local command = result:get_child("command", xmlns_commands); |
| 85 self.status = command.attr.status; | 86 self.status = command.attr.status; |
| 86 self.sessionid = command.attr.sessionid; | 87 self.sessionid = command.attr.sessionid; |
| 87 self.form = command:get_child("x", xmlns_data); | 88 self.form = command:get_child("x", xmlns_data); |