Skip to content
This repository was archived by the owner on May 30, 2019. It is now read-only.

Commit 41e5d06

Browse files
committed
e2e: no extra callbacks
Don't try to callback done on e2e tasks a second time -- ensure that as soon as the task signals its done, we don't call back to orchestrator a second time. Closes #679
1 parent c0f3135 commit 41e5d06

File tree

1 file changed

+1
-1
lines changed
  • shared/js/dev-tasks/tasks

1 file changed

+1
-1
lines changed

shared/js/dev-tasks/tasks/e2e.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,11 @@ myTasks.push({
139139

140140
var done = function (err) {
141141
if (!haveClosed) {
142+
haveClosed = true;
142143
err = err && !Error.prototype.isPrototypeOf(err) ?
143144
new Error(err) :
144145
null;
145146
ctx.closeActiveServers(function () { cb(err); });
146-
haveClosed = true;
147147
}
148148
};
149149

0 commit comments

Comments
 (0)