Skip to content

Commit

Permalink
fix: 修复 server 关闭服务器后,如果等待消息结束过程中,新消息将阻塞的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
kercylan98 committed Sep 8, 2023
1 parent 6c882ed commit 19df61b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ func (slf *Server) ShuntChannelFreed(channelGuid int64) {

// pushMessage 向服务器中写入特定类型的消息,需严格遵守消息属性要求
func (slf *Server) pushMessage(message *Message) {
if slf.messagePool.IsClose() || slf.isShutdown.Load() || !slf.OnMessageExecBeforeEvent(message) {
if slf.messagePool.IsClose() || !slf.OnMessageExecBeforeEvent(message) {
slf.messagePool.Release(message)
return
}
Expand Down

0 comments on commit 19df61b

Please sign in to comment.