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
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -428,7 +428,10 @@ internal class OneBotBotImpl(
428
428
// 等待关闭完成
429
429
val reason = kotlin.runCatching {
430
430
currentSession.closeReason.await()
431
-
}.getOrNull()
431
+
}.getOrElse { e ->
432
+
logger.debug("Failed to get close reason for session: {}", e.message, e)
433
+
null
434
+
}
432
435
logger.debug("Session {} done. The reason: {}", currentSession, reason)
0 commit comments