Skip to content

Commit f64e1aa

Browse files
authored
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.
1 parent 6313a74 commit f64e1aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ class Framework {
515515
notificationManager.Push(std::move(notif));
516516
// send next message the next time
517517
notification_idx++;
518-
if (notification_idx >= notification_messages.size()) {
518+
if (notification_idx >= notification_messages.size()/2) {
519519
notification_idx = 0;
520520
}
521521
}

0 commit comments

Comments
 (0)