From 23bc8ffbb16b2d7842297d1672d54898d8436b72 Mon Sep 17 00:00:00 2001 From: Tristan Cavelier <tristan.cavelier@tiolive.com> Date: Wed, 20 Feb 2013 09:30:10 +0100 Subject: [PATCH] jio improved to avoid 'that.success' calls to do something after the first call --- src/jio/commands/command.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/jio/commands/command.js b/src/jio/commands/command.js index 41841ea..bd63dfb 100644 --- a/src/jio/commands/command.js +++ b/src/jio/commands/command.js @@ -235,6 +235,8 @@ var command = function (spec, my) { priv.on_going = false; priv.success(return_value); priv.end(doneStatus()); + priv.success = function () {}; + priv.error = function () {}; }; that.retry = function (return_error) { priv.on_going = false; @@ -248,6 +250,8 @@ var command = function (spec, my) { priv.on_going = false; priv.error(return_error); priv.end(failStatus()); + priv.success = function () {}; + priv.error = function () {}; }; that.end = function () { priv.end(doneStatus()); -- 2.30.9