Skip to content

Commit

Permalink
fix: join brpc server after stop it
Browse files Browse the repository at this point in the history
Signed-off-by: mango <[email protected]>
  • Loading branch information
mangoGoForward committed Jul 14, 2022
1 parent 467e231 commit 152e10d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sdk/mini_cluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ class MiniCluster {

for (int i = 0; i < tablet_num_; i++) {
tb_servers_[i].Stop(10);
tb_servers_[i].Join();
}
}

Expand Down Expand Up @@ -277,6 +278,7 @@ class StandaloneEnv {
void Close() {
ns_.Stop(10);
tb_server_.Stop(10);
tb_server_.Join();
}

::openmldb::client::NsClient* GetNsClient() { return ns_client_; }
Expand Down

0 comments on commit 152e10d

Please sign in to comment.