Skip to content

Commit

Permalink
fix(events) ensure open requests that reply with an operation and reg…
Browse files Browse the repository at this point in the history
…ister new handlers in the eventQueue are closed before handling the event

Signed-off-by: David Edler <david.edler@canonical.com>
  • Loading branch information
edlerd committed Feb 26, 2024
1 parent 46faa10 commit f499ce6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/instances/Events.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ const Events: FC = () => {
});
void refetchOperations();
}
handleEvent(event);
// ensure open requests that reply with an operation and register
// new handlers in the eventQueue are closed before handling the event
setTimeout(() => handleEvent(event), 250);
};
};

Expand Down

0 comments on commit f499ce6

Please sign in to comment.