mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2026-11-27 15:47:00 +00:00
修复JsParserExecutor DCL模式缺少volatile:EXECUTOR字段添加volatile保证多线程可见性
This commit is contained in:
1 parent
42925c857c
commit
838c86ae15
1 file changed
+1
-1
@@ -33,7 +33,7 @@ public class JsParserExecutor implements IPanTool, AutoCloseable {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(JsParserExecutor.class);
|
||||
|
||||
private static WorkerExecutor EXECUTOR;
|
||||
private static volatile WorkerExecutor EXECUTOR;
|
||||
private static final Object EXECUTOR_LOCK = new Object();
|
||||
|
||||
private static String FETCH_RUNTIME_JS = null;
|
||||
|
||||
Reference in new issue
Block a user