File tree 1 file changed +4
-4
lines changed
trpc-core/src/main/java/com/tencent/trpc/core/common
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -369,16 +369,16 @@ protected void stopInternal() throws Exception {
369
369
}
370
370
// 2) wait waitTime before stop service
371
371
Thread .sleep (waitTime );
372
- // 3) wait for threads to close
373
- WorkerPoolManager .shutdown (closeTime , TimeUnit .MILLISECONDS );
374
- // 4) service stop, do not accept new requests
372
+ // 3) service stop, do not accept new requests
375
373
if (serverConfig != null ) {
376
374
serverConfig .stop ();
377
375
}
378
- // 5 ) business-related
376
+ // 4 ) business-related
379
377
if (appInitializer != null ) {
380
378
appInitializer .stop ();
381
379
}
380
+ // 5) wait for threads to close
381
+ WorkerPoolManager .shutdown (closeTime , TimeUnit .MILLISECONDS );
382
382
// 6) close the client side
383
383
clientConfig .stop ();
384
384
// 7) close plugins
You can’t perform that action at this time.
0 commit comments