1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-04 19:17:37 +08:00

fix: PutBuffer panic on nil event buffer (#1299)

This commit is contained in:
源文雨 2021-12-31 11:19:58 +08:00 committed by GitHub
parent b98f75ccab
commit 9152185ebc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -569,7 +569,9 @@ func (bot *CQBot) dispatchEventMessage(m global.MSG) {
}(f)
}
wg.Wait()
global.PutBuffer(event.buffer)
if event.buffer != nil {
global.PutBuffer(event.buffer)
}
}
func formatGroupName(group *client.GroupInfo) string {