Commit 4b62d643 authored by Him188's avatar Him188

Fix boom

parent a08bf241
...@@ -46,7 +46,6 @@ import net.mamoe.mirai.qqandroid.utils.retryCatching ...@@ -46,7 +46,6 @@ import net.mamoe.mirai.qqandroid.utils.retryCatching
import net.mamoe.mirai.utils.* import net.mamoe.mirai.utils.*
import kotlin.coroutines.CoroutineContext import kotlin.coroutines.CoroutineContext
import kotlin.jvm.Volatile import kotlin.jvm.Volatile
import kotlin.random.Random
import kotlin.time.ExperimentalTime import kotlin.time.ExperimentalTime
@Suppress("MemberVisibilityCanBePrivate") @Suppress("MemberVisibilityCanBePrivate")
...@@ -331,12 +330,7 @@ internal class QQAndroidBotNetworkHandler(coroutineContext: CoroutineContext, bo ...@@ -331,12 +330,7 @@ internal class QQAndroidBotNetworkHandler(coroutineContext: CoroutineContext, bo
coroutineScope { coroutineScope {
launch { reloadFriendList() } launch { reloadFriendList() }
launch { launch { reloadGroupList() }
if (Random.nextInt() > 50) {
error("boom")
}
reloadGroupList()
}
} }
this@QQAndroidBotNetworkHandler.launch { this@QQAndroidBotNetworkHandler.launch {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment