We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1c34e9 commit 29f0248Copy full SHA for 29f0248
1 file changed
Source/Utils/OpenEphysHttpServer.h
@@ -472,8 +472,15 @@ class OpenEphysHttpServer : juce::Thread {
472
return;
473
}
474
475
- String return_msg = graph_->sendConfigMessage(processor, String(message_str));
476
-
+ String return_msg;
+
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
484
json ret;
485
ret["info"] = return_msg.toStdString();
486
res.set_content(ret.dump(), "application/json");
0 commit comments