Skip to content

Commit

Permalink
1、晚上多线程问题
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyJingFish committed Dec 18, 2024
1 parent 009baca commit 1bd8ddc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,9 @@ class CompileAndroidAopTask(
// println("relativePath=$relativePath")
val target = File(output.absolutePath + File.separatorChar + relativePath)
target.checkExist()
cacheDeleteFiles.add(target.absolutePath)
synchronized(cacheDeleteFiles){
cacheDeleteFiles.add(target.absolutePath)
}
file.inputStream().use {
target.saveEntry(it)
}
Expand Down

0 comments on commit 1bd8ddc

Please sign in to comment.