Skip to content

Commit 0a62753

Browse files
committed
🔧 달리기 시작 로직 일부 수정
1 parent ce84c51 commit 0a62753

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

presentation/src/main/java/com/whyranoid/presentation/running/RunningViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ class RunningViewModel @Inject constructor(
2626
val runningState = runningRepository.runningState
2727

2828
init {
29-
startRunningWorker(context)
3029
if (runningRepository.runningState.value is RunningState.NotRunning) {
3130
viewModelScope.launch {
3231
startRunningUseCase()
3332
}
3433
}
34+
startRunningWorker(context)
3535
}
3636

3737
private fun startRunningWorker(context: Context): LiveData<WorkInfo> {

0 commit comments

Comments
 (0)