Skip to content

Commit

Permalink
fix: interrupt thread when task right
Browse files Browse the repository at this point in the history
  • Loading branch information
MC-XiaoHei committed Jun 22, 2024
1 parent 13de64d commit d201f68
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ class GradleTaskManager : GradleTaskManagerExtension {
jvmParametersSetup: String?,
listener: ExternalSystemTaskNotificationListener,
): Boolean {
applyPatchesWatcherThreadSet.forEach { it.interrupt() }
taskNames
.filter { name -> name.startsWith("apply") && name.endsWith("Patches") }
.forEach { name ->
val store = id.findProject()?.leavesknifeStoreService ?: return@forEach
applyPatchesWatcherThreadSet.forEach { it.interrupt() }
with(store) {
try {
when (name) {
Expand Down

0 comments on commit d201f68

Please sign in to comment.