Commit 23bc8ffb authored by Tristan Cavelier's avatar Tristan Cavelier

jio improved to avoid 'that.success' calls to do something after the first call

parent eec60f02
......@@ -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());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment