Perform quit operations in a useful order in Node perf tests

This commit is contained in:
murgatroid99 2016-12-06 14:18:21 -08:00
parent 9579512d35
commit 0ea53cccdd

View File

@ -55,9 +55,8 @@ module.exports = function WorkerServiceImpl(benchmark_impl, server) {
}
this.quitWorker = function quitWorker(call, callback) {
server.tryShutdown(function() {
callback(null, {});
});
callback(null, {});
server.tryShutdown(function() {});
};
this.runClient = function runClient(call) {