remove providers only on new profile

This commit is contained in:
Kr328 committed 2020-04-13 11:58:01 +08:00
1 parent 2d3bd5c5cf
commit 87d17bcb9a
1 file changed
+1 -2
@@ -47,8 +47,7 @@ class ProfileService : BaseService() {
override fun cancel(id: Long) {
launch {
lock.withLock {
if (pending.remove(id) != null)
service.resolveBaseDir(id).deleteRecursively()
pending.remove(id)
}
}
}