mirror of
https://github.com/KRTirtho/spotube.git
synced 2026-11-04 10:13:59 +00:00
fix(stream-proxy): improve logging for cache timeout and handle disconnection scenarios
This commit is contained in:
parent
c9d16a25c6
commit
77a9cef3a1
@ -131,8 +131,11 @@ internal class StreamProxy(
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// The caching request ended without committing (player disconnected or the
|
||||||
|
// source was switched); nothing left to wait for.
|
||||||
|
if (streamingMutex.withLock { trackId !in streamingInProgress }) break
|
||||||
}
|
}
|
||||||
logger.w { "Timeout waiting for cache of track $trackId, falling through to upstream" }
|
logger.d { "No cache for track $trackId after waiting, falling through to upstream" }
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
@ -56,11 +56,8 @@ import androidx.compose.ui.text.font.FontWeight
|
|||||||
import androidx.compose.ui.text.style.TextAlign
|
import androidx.compose.ui.text.style.TextAlign
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import androidx.compose.ui.unit.sp
|
import androidx.compose.ui.unit.sp
|
||||||
import compose.icons.FeatherIcons
|
|
||||||
import compose.icons.feathericons.X
|
|
||||||
import dev.krtirtho.plugin_interfaces.plugin_apis.lyrics.LyricsLine
|
import dev.krtirtho.plugin_interfaces.plugin_apis.lyrics.LyricsLine
|
||||||
import dev.krtirtho.spotube.core.ui.component.ApplicationBackButton
|
import dev.krtirtho.spotube.core.ui.component.ApplicationBackButton
|
||||||
import dev.krtirtho.spotube.modules.shell.LocalAppShellBottomInset
|
|
||||||
import dev.krtirtho.spotube.resources.iconsax.Iconsax
|
import dev.krtirtho.spotube.resources.iconsax.Iconsax
|
||||||
import dev.krtirtho.spotube.resources.iconsax.IconsaxArrowDown4
|
import dev.krtirtho.spotube.resources.iconsax.IconsaxArrowDown4
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
@ -129,7 +126,6 @@ fun LyricsScreen(
|
|||||||
.weight(1f)
|
.weight(1f)
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.padding(horizontal = 16.dp)
|
.padding(horizontal = 16.dp)
|
||||||
.padding(bottom = LocalAppShellBottomInset.current + 24.dp)
|
|
||||||
) {
|
) {
|
||||||
Spacer(modifier = Modifier.height(16.dp))
|
Spacer(modifier = Modifier.height(16.dp))
|
||||||
when {
|
when {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user