Skip to content

Commit 29f0248

Browse files
committed
Ignore config messages if acquisition is active
1 parent b1c34e9 commit 29f0248

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

Source/Utils/OpenEphysHttpServer.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,15 @@ class OpenEphysHttpServer : juce::Thread {
472472
return;
473473
}
474474

475-
String return_msg = graph_->sendConfigMessage(processor, String(message_str));
476-
475+
String return_msg;
476+
477+
if (!CoreServices::getAcquisitionStatus())
478+
{
479+
return_msg = graph_->sendConfigMessage(processor, String(message_str));
480+
} else {
481+
return_msg = "Cannot send config message while acquisition is active.";
482+
}
483+
477484
json ret;
478485
ret["info"] = return_msg.toStdString();
479486
res.set_content(ret.dump(), "application/json");

0 commit comments

Comments
 (0)