When API service quits, peering service also must quit.

This commit is contained in:
kishorenc 2020-03-21 07:43:41 +05:30
parent 1cd9793d69
commit c0759f0d1b

View File

@ -345,6 +345,8 @@ int run_server(const Config & config, const std::string & version,
// we are out of the event loop here
LOG(INFO) << "Typesense API service has quit. Stopping raft service...";
quit_raft_service = true;
raft_thread.join();
curl_global_cleanup();