Skip to content

Commit

Permalink
Fix double installation (Closes #550)
Browse files Browse the repository at this point in the history
  • Loading branch information
Iamlooker committed Oct 30, 2023
1 parent d95e230 commit b315f1b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ class InstallManager(
}
}
}.consumeEach { item ->
currentQueue.remove(item.packageName.name)
if (state.value.containsKey(item.packageName)) {
updateState { put(item.packageName, InstallState.Installing) }
val success = installer.install(item)
Expand All @@ -95,6 +94,7 @@ class InstallManager(
"download-${item.packageName.name}",
Constants.NOTIFICATION_ID_DOWNLOADING
)
currentQueue.remove(item.packageName.name)
}
}
}
Expand Down

0 comments on commit b315f1b

Please sign in to comment.