Skip to content

Commit a188e9e

Browse files
authored
Merge pull request #110 from simple-robot/dev/main
Release: v1.4.2
2 parents eac34ad + 5f4fc5e commit a188e9e

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

.changelog/v1.4.2.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
> 对应核心版本: [**v4.6.0**](https://github.com/simple-robot/simpler-robot/releases/tag/v4.6.0)
2+
3+
4+
我们欢迎并期望着您的的[反馈](https://github.com/simple-robot/simbot-component-onebot/issues)[协助](https://github.com/simple-robot/simbot-component-onebot/pulls)
5+
感谢您的贡献与支持!
6+
7+
也欢迎您为我们献上一颗 `star`,这是对我们最大的鼓励与认可!

.github/workflows/qodana_code_quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Qodana
22
on:
33
workflow_dispatch:
4-
pull_request:
4+
pull_request_target:
55
push:
66
branches:
77
- dev/main

buildSrc/src/main/kotlin/P.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ object P {
3737
override val description: String get() = DESCRIPTION
3838
override val homepage: String get() = HOMEPAGE
3939

40-
const val VERSION = "1.4.1"
41-
const val NEXT_VERSION = "1.4.2"
40+
const val VERSION = "1.4.2"
41+
const val NEXT_VERSION = "1.4.3"
4242

4343
override val snapshotVersion = "$NEXT_VERSION-SNAPSHOT"
4444
override val version = if (isSnapshot()) snapshotVersion else VERSION

simbot-component-onebot-v11/simbot-component-onebot-v11-core/src/commonMain/kotlin/love/forte/simbot/component/onebot/v11/core/bot/internal/OneBotBotImpl.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,12 @@ internal class OneBotBotImpl(
426426
}
427427

428428
// 等待关闭完成
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+
}
430435
logger.debug("Session {} done. The reason: {}", currentSession, reason)
431436
}
432437

0 commit comments

Comments
 (0)