aboutsummaryrefslogtreecommitdiff
path: root/lib/diff.js
diff options
context:
space:
mode:
authorMatt Godbolt <matt@godbolt.org>2016-08-06 15:58:12 -0500
committerMatt Godbolt <matt@godbolt.org>2016-08-06 15:58:12 -0500
commitc52fa286bc84bce682e0d1f2c7f2797ff2813f91 (patch)
tree17d5b59496ee34f6386ed26690985bcada6c3958 /lib/diff.js
parentdc57abaa7476d7d36b1abd013d6a1568c8694129 (diff)
downloadcompiler-explorer-c52fa286bc84bce682e0d1f2c7f2797ff2813f91.tar.gz
compiler-explorer-c52fa286bc84bce682e0d1f2c7f2797ff2813f91.zip
Fix up an async thing.
Diffstat (limited to 'lib/diff.js')
-rw-r--r--lib/diff.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/diff.js b/lib/diff.js
index 3123929a4..bf31673c4 100644
--- a/lib/diff.js
+++ b/lib/diff.js
@@ -199,7 +199,10 @@ function buildDiffHandler(config) {
reject(e);
});
child.on('exit', function () {
- resolve(stdout);
+ // See comment in compile.js - seems needed if the child has immediately exited
+ setTimeout(function () {
+ resolve(stdout);
+ }, 0);
});
});
})