Skip to content

Commit 5936955

Browse files
committed
Add MessageManagerLock when clearing signal chain via HTTP
1 parent dcb6039 commit 5936955

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Source/Utils/OpenEphysHttpServer.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,9 @@ class OpenEphysHttpServer : juce::Thread {
516516
});
517517

518518
svr_->Get("/api/processors/clear", [this](const httplib::Request&, httplib::Response& res) {
519+
520+
const MessageManagerLock mml;
521+
519522
graph_->clearSignalChain();
520523
json ret;
521524
status_to_json(graph_, &ret);

0 commit comments

Comments
 (0)