去除失效的配置,增加人物结束时移除人物缓存

This commit is contained in:
648540858
2022-07-11 16:41:32 +08:00
parent afbec28906
commit 1a1a68784b
2 changed files with 2 additions and 7 deletions

View File

@@ -103,12 +103,9 @@ public class DynamicTask {
public void stop(String key) {
if (futureMap.get(key) != null && !futureMap.get(key).isCancelled()) {
// Runnable runnable = runnableMap.get(key);
// if (runnable instanceof ISubscribeTask) {
// ISubscribeTask subscribeTask = (ISubscribeTask) runnable;
// subscribeTask.stop();
// }
futureMap.get(key).cancel(false);
futureMap.remove(key);
runnableMap.remove(key);
}
}