aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--replay/replay-events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/replay/replay-events.c b/replay/replay-events.c
index ca940f70e7..4aa8034d98 100644
--- a/replay/replay-events.c
+++ b/replay/replay-events.c
@@ -135,7 +135,7 @@ void replay_add_event(ReplayAsyncEventKind event_kind,
void replay_bh_schedule_event(QEMUBH *bh)
{
- if (replay_mode != REPLAY_MODE_NONE) {
+ if (replay_mode != REPLAY_MODE_NONE && events_enabled) {
uint64_t id = replay_get_current_step();
replay_add_event(REPLAY_ASYNC_EVENT_BH, bh, NULL, id);
} else {