mirror of
https://github.com/mamoe/mirai.git
synced 2026-08-31 03:38:02 +08:00
Fix boom
This commit is contained in:
@@ -46,7 +46,6 @@ import net.mamoe.mirai.qqandroid.utils.retryCatching
|
||||
import net.mamoe.mirai.utils.*
|
||||
import kotlin.coroutines.CoroutineContext
|
||||
import kotlin.jvm.Volatile
|
||||
import kotlin.random.Random
|
||||
import kotlin.time.ExperimentalTime
|
||||
|
||||
@Suppress("MemberVisibilityCanBePrivate")
|
||||
@@ -331,12 +330,7 @@ internal class QQAndroidBotNetworkHandler(coroutineContext: CoroutineContext, bo
|
||||
|
||||
coroutineScope {
|
||||
launch { reloadFriendList() }
|
||||
launch {
|
||||
if (Random.nextInt() > 50) {
|
||||
error("boom")
|
||||
}
|
||||
reloadGroupList()
|
||||
}
|
||||
launch { reloadGroupList() }
|
||||
}
|
||||
|
||||
this@QQAndroidBotNetworkHandler.launch {
|
||||
|
||||
Reference in New Issue
Block a user