From 0ea53cccdd9fefac4e284f88a4e13c6a1f1bd658 Mon Sep 17 00:00:00 2001 From: murgatroid99 Date: Tue, 6 Dec 2016 14:18:21 -0800 Subject: [PATCH] Perform quit operations in a useful order in Node perf tests --- performance/worker_service_impl.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/performance/worker_service_impl.js b/performance/worker_service_impl.js index 3f317f64..38888a72 100644 --- a/performance/worker_service_impl.js +++ b/performance/worker_service_impl.js @@ -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) {