mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[ion] Actually send None events to the destination journal
Said journal will most likely ignore it, but it gives it the opporunity to do something about it.
This commit is contained in:
@@ -134,7 +134,7 @@ Event getEvent(int * timeout) {
|
||||
}
|
||||
}
|
||||
Event e = innerGetEvent(timeout);
|
||||
if (sDestinationJournal != nullptr && e != None) {
|
||||
if (sDestinationJournal != nullptr) {
|
||||
sDestinationJournal->pushEvent(e);
|
||||
}
|
||||
return e;
|
||||
|
||||
@@ -11,7 +11,9 @@ namespace Journal {
|
||||
class QueueJournal : public Ion::Events::Journal {
|
||||
public:
|
||||
void pushEvent(Ion::Events::Event e) override {
|
||||
m_eventStorage.push(e);
|
||||
if (e != Ion::Events::None) {
|
||||
m_eventStorage.push(e);
|
||||
}
|
||||
}
|
||||
virtual Ion::Events::Event popEvent() override {
|
||||
if (isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user