Skip to content

Commit fc107f3

Browse files
authored
Fix bug where security event notification was sent while bootnotification was still pending. #984
Bug was caused by security event messages stored in the database. Setting a flag when retrieving it from the database to wait sending the message until the bootnotification is accepted, fixes it. Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
1 parent a425d34 commit fc107f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/ocpp/common/message_queue.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ template <typename M> class MessageQueue {
601601
}
602602
} else {
603603
std::shared_ptr<ControlMessage<M>> message =
604-
std::make_shared<ControlMessage<M>>(persisted_message.json_message);
604+
std::make_shared<ControlMessage<M>>(persisted_message.json_message, true);
605605
message->messageType = string_to_messagetype(persisted_message.message_type);
606606
message->timestamp = persisted_message.timestamp;
607607
message->message_attempts = persisted_message.message_attempts;

0 commit comments

Comments
 (0)