This commit is contained in:
lunaticbum 2026-03-29 08:40:59 +09:00
parent a7df635f66
commit a5c0bd67a8

View File

@ -157,6 +157,7 @@ class TorrentService : Service() {
} catch (e: Exception) { } catch (e: Exception) {
e.printStackTrace() e.printStackTrace()
} }
_torrentTasks.value = mutableListOf<TorrentTask>()
stopForeground(true) // 💡 상단바 알림 즉시 제거 stopForeground(true) // 💡 상단바 알림 즉시 제거
stopSelf() // 💡 서비스 스스로 종료 (메모리 해제) stopSelf() // 💡 서비스 스스로 종료 (메모리 해제)
@ -240,7 +241,7 @@ class TorrentService : Service() {
if (tasks.isNotEmpty()) { if (tasks.isNotEmpty()) {
updateNotification(tasks) updateNotification(tasks)
} }
delay(15000) delay(1500)
} }
} }
} }