]> jfr.im git - erebus.git/commit
Fix a bug that could lose messages from the queue.
authorJohn Runyon <redacted>
Sun, 30 Jan 2022 07:40:27 +0000 (01:40 -0600)
committerJohn Runyon <redacted>
Sun, 30 Jan 2022 07:48:51 +0000 (01:48 -0600)
commit82025c0af941f54c6e67c2911422b5354e4a8c77
tree37a556dbfc64f073008ada078e1a05c18765ff3d
parentb336e10881d2ba6afbe4b68187512fc2d4c17071
Fix a bug that could lose messages from the queue.

Specifically, when a message was chosen from the queue, and:
- It was somehow over `recvq` (for example, a certain developer was tinkering with his bot)
- Or it plus the *amount recently sent* was over `recvq`
The message would be silently dropped.
bot.py