mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 06:50:02 +02:00
check for module attached only when enabling veto streaming, not disabling
This commit is contained in:
parent
6189fd157a
commit
d175ba0936
@ -7455,31 +7455,32 @@ int set_veto(int file_des) {
|
||||
// only set
|
||||
if (Server_VerifyLock() == OK) {
|
||||
// veto allowed only if module attached or in -nomodule mode
|
||||
if (checkModuleFlag) {
|
||||
int type_ret = checkDetectorType();
|
||||
if (type_ret == -1) {
|
||||
ret = FAIL;
|
||||
sprintf(
|
||||
mess,
|
||||
"Could not enable/disable veto streaming. Could not open "
|
||||
"file to know if module attached.\n");
|
||||
LOG(logERROR, (mess));
|
||||
} else if (type_ret == -2) {
|
||||
ret = FAIL;
|
||||
sprintf(mess, "Could not enable/disable veto streaming. No "
|
||||
"module attached!\n");
|
||||
LOG(logERROR, (mess));
|
||||
} else if (type_ret == FAIL) {
|
||||
ret = FAIL;
|
||||
sprintf(mess, "Could not enable/disable veto streaming. Wrong "
|
||||
"module type "
|
||||
"attached!\n");
|
||||
LOG(logERROR, (mess));
|
||||
if (arg > 0) {
|
||||
if (checkModuleFlag) {
|
||||
int type_ret = checkDetectorType();
|
||||
if (type_ret == -1) {
|
||||
ret = FAIL;
|
||||
sprintf(mess, "Could not enable veto streaming. "
|
||||
"Could not open "
|
||||
"file to know if module attached.\n");
|
||||
LOG(logERROR, (mess));
|
||||
} else if (type_ret == -2) {
|
||||
ret = FAIL;
|
||||
sprintf(mess, "Could not enable veto streaming. No "
|
||||
"module attached!\n");
|
||||
LOG(logERROR, (mess));
|
||||
} else if (type_ret == FAIL) {
|
||||
ret = FAIL;
|
||||
sprintf(mess, "Could not enable veto streaming. Wrong "
|
||||
"module type "
|
||||
"attached!\n");
|
||||
LOG(logERROR, (mess));
|
||||
}
|
||||
} else {
|
||||
LOG(logINFOBLUE,
|
||||
("In No-Module mode: Ignoring module-attached check. "
|
||||
"Continuing to enable veto streaming.\n"));
|
||||
}
|
||||
} else {
|
||||
LOG(logINFOBLUE,
|
||||
("In No-Module mode: Ignoring module-attached check. "
|
||||
"Continuing to enable/disable veto streaming.\n"));
|
||||
}
|
||||
if (ret == OK) {
|
||||
setVeto(arg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user