You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: simbot-component-onebot-v11/simbot-component-onebot-v11-core/src/commonMain/kotlin/love/forte/simbot/component/onebot/v11/core/bot/internal/OneBotBotImpl.kt
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -426,7 +426,12 @@ internal class OneBotBotImpl(
426
426
}
427
427
428
428
// 等待关闭完成
429
-
val reason = currentSession.closeReason.await()
429
+
val reason = kotlin.runCatching {
430
+
currentSession.closeReason.await()
431
+
}.getOrElse { e ->
432
+
logger.debug("Failed to get close reason for session: {}", e.message, e)
433
+
null
434
+
}
430
435
logger.debug("Session {} done. The reason: {}", currentSession, reason)
0 commit comments