mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-14 09:23:51 +01:00
Fix dropped message log
This commit is contained in:
parent
4eacece8ba
commit
673f5a8389
1 changed files with 2 additions and 2 deletions
4
user.go
4
user.go
|
@ -799,8 +799,8 @@ func (user *User) runMessageRingBuffer() {
|
|||
select {
|
||||
case user.messageOutput <- msg:
|
||||
default:
|
||||
user.log.Warnln("Buffer is full, dropping message in", msg.chat)
|
||||
<-user.messageOutput
|
||||
dropped := <-user.messageOutput
|
||||
user.log.Warnln("Buffer is full, dropping message in", dropped.chat)
|
||||
user.messageOutput<-msg
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue