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.
This commit is contained in:
NeroBurner 2022-06-05 22:00:50 +02: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

View File

@ -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;
}
}