Skip to content

Commit

Permalink
[INLONG-9554][SDK] Fix the shutdownInternalThreads methods throw the …
Browse files Browse the repository at this point in the history
…NullPointerException (#9555)

Co-authored-by: castorqin <qhj00725@qq.com>
  • Loading branch information
castorqin and castorqin authored Jan 9, 2024
1 parent e91719b commit ddd0a3f
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,6 @@ public DefaultMessageSender(ProxyClientConfig configure, ThreadFactory selfDefin
indexCol = new IndexCollectThread(storeIndex);
indexCol.start();

if (configure.isEnableSaveManagerVIps()
&& configure.isRequestByHttp()
&& MANAGER_FETCHER_THREAD_STARTED.compareAndSet(false, true)) {
managerFetcherThread = new ManagerFetcherThread(configure);
managerFetcherThread.start();
}
}

/**
Expand Down Expand Up @@ -847,7 +841,6 @@ public String sendMessageFile(byte[] body, String groupId, String streamId, long

private void shutdownInternalThreads() {
indexCol.shutDown();
managerFetcherThread.shutdown();
MANAGER_FETCHER_THREAD_STARTED.set(false);
}

Expand Down

0 comments on commit ddd0a3f

Please sign in to comment.