From e2856b653042a28f2978fa32dab2fa84a455a384 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Wed, 27 Sep 2017 11:45:34 +0200 Subject: Move the redundant sync from shutdown to where it is required in sync. --- messagebus/src/vespa/messagebus/network/rpcnetwork.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'messagebus') diff --git a/messagebus/src/vespa/messagebus/network/rpcnetwork.cpp b/messagebus/src/vespa/messagebus/network/rpcnetwork.cpp index 1ea5654a632..a454f8382c0 100644 --- a/messagebus/src/vespa/messagebus/network/rpcnetwork.cpp +++ b/messagebus/src/vespa/messagebus/network/rpcnetwork.cpp @@ -378,13 +378,13 @@ void RPCNetwork::sync() { SyncTask task(_scheduler); + _executor->sync(); task.await(); } void RPCNetwork::shutdown() { - _executor->sync(); _transport->ShutDown(false); _threadPool->Close(); _executor->shutdown(); -- cgit v1.2.3