Skip to content

Commit

Permalink
取消网络错误继续监听的逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
eatmoreapple committed Dec 9, 2022
1 parent 8a201f1 commit 4063e36
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,6 @@ func (b *Bot) syncCheck() error {

// 当获取消息发生错误时, 默认的错误处理行为
func (b *Bot) stopSyncCheck(err error) bool {
if IsNetworkError(err) {
log.Println(err)
// 继续监听
return true
}
b.err = err
b.Exit()
return false
Expand Down

0 comments on commit 4063e36

Please sign in to comment.