music: fix broken android auto search
This commit is contained in:
@@ -123,9 +123,9 @@ constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun <T> Result<T>.dispatchAsync(body: suspend () -> T?) {
|
private fun <T> Result<T>.dispatchAsync(body: suspend () -> T?) {
|
||||||
|
detach()
|
||||||
dispatchScope.launch {
|
dispatchScope.launch {
|
||||||
try {
|
try {
|
||||||
detach()
|
|
||||||
val result = body()
|
val result = body()
|
||||||
if (result == null) {
|
if (result == null) {
|
||||||
logW("Result is null")
|
logW("Result is null")
|
||||||
|
|||||||
Reference in New Issue
Block a user