Fix notification segfault (#36)

Need to loop the notification_idx after half the notification_messages
size since the change of splitting the subject and message body into two
strings.
main
NeroBurner 2022-06-05 22:00:50 +07:00 committed by GitHub
parent 6313a7498b
commit f64e1aab80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

@ -515,7 +515,7 @@ public:
notificationManager.Push(std::move(notif));
// send next message the next time
notification_idx++;
if (notification_idx >= notification_messages.size()) {
if (notification_idx >= notification_messages.size()/2) {
notification_idx = 0;
}
}