ソースを参照

Stop using runBlocking inside suspend funs

Peter Cai 1 年間 前
コミット
69e63b0a8b

+ 1 - 1
app-common/src/main/java/im/angry/openeuicc/core/DefaultEuiccChannelManager.kt

@@ -173,7 +173,7 @@ open class DefaultEuiccChannelManager(
                 try {
                     // tryOpenEuiccChannel() will automatically dispose of invalid channels
                     // and recreate when needed
-                    val channel = findEuiccChannelByPortBlocking(physicalSlotId, portId)!!
+                    val channel = findEuiccChannelByPort(physicalSlotId, portId)!!
                     check(channel.valid) { "Invalid channel" }
                     break
                 } catch (e: Exception) {