Skip to content

Commit

Permalink
fix block event
Browse files Browse the repository at this point in the history
  • Loading branch information
linrunqi08 committed Nov 27, 2023
1 parent d0600a9 commit 16821b2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/event/BlockEventManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ class BlockedEventManager : public LogstoreFeedBackInterface {
BlockedEvent() : mLogstoreKey(0), mEvent(NULL), mInvalidTime(time(NULL)), mTimeout(1) {}
void Update(const LogstoreFeedBackKey& logstoreKey, Event* pEvent, int32_t curTime) {
if (mEvent != NULL) {
delete mEvent;
if (!pEvent->IsReaderFlushTimeout() || mEvent->IsReaderFlushTimeout()) {
delete mEvent;
} else {
return;
}
}
mEvent = pEvent;
mLogstoreKey = logstoreKey;
Expand Down

0 comments on commit 16821b2

Please sign in to comment.