Skip to content

Commit 20cf841

Browse files
sentinelwebsentinelweb
authored andcommitted
#496 - wifi lost > atransfers inprogress>confirmed
1 parent 3d5ee21 commit 20cf841

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shared/src/commonMain/kotlin/uk/co/sentinelweb/cuer/app/service/transfers/MemoryTransfersService.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class MemoryTransfersService(
7070
if (isWifiConnected) {
7171
checkPendingTransfers()
7272
} else {
73-
putAllInProgressJobsToPending()
73+
putAllInProgressJobsToConfirmed()
7474
}
7575
}
7676
}.launchIn(scope)
@@ -111,10 +111,10 @@ class MemoryTransfersService(
111111
}
112112
}
113113

114-
private fun putAllInProgressJobsToPending() {
114+
private fun putAllInProgressJobsToConfirmed() {
115115
inProgressTransfers.forEach {
116116
it.job.cancel()
117-
addReplaceTransfer(it.transfer.copy(status = Pending))
117+
addReplaceTransfer(it.transfer.copy(status = Confirmed))
118118
}
119119
inProgressTransfers.clear()
120120
}

0 commit comments

Comments
 (0)