Skip to content

Commit

Permalink
Judging qos is in started state when stopping qos (#13271)
Browse files Browse the repository at this point in the history
  • Loading branch information
finefuture authored Nov 1, 2023
1 parent 34fda03 commit 1a6dbbe
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ private void startQosServer(URL url, boolean isServer) throws RpcException {
/*package*/ void stopServer() {
if (hasStarted.compareAndSet(true, false)) {
Server server = frameworkModel.getBeanFactory().getBean(Server.class);
server.stop();
if (server.isStarted()) {
server.stop();
}
}
}
}

0 comments on commit 1a6dbbe

Please sign in to comment.