added another sanity check

This commit is contained in:
Bernhard B
2021-09-11 23:11:11 +02:00
parent fd5388506b
commit a3843b9f12

View File

@@ -107,6 +107,11 @@ func main() {
if autoReceiveScheduleEnvVariableSet { if autoReceiveScheduleEnvVariableSet {
log.Fatal("Env variable AUTO_RECEIVE_SCHEDULE can't be used with mode json-rpc") log.Fatal("Env variable AUTO_RECEIVE_SCHEDULE can't be used with mode json-rpc")
} }
_, signalCliCommandTimeoutEnvVariableSet := os.LookupEnv("SIGNAL_CLI_CMD_TIMEOUT")
if signalCliCommandTimeoutEnvVariableSet {
log.Fatal("Env variable SIGNAL_CLI_CMD_TIMEOUT can't be used with mode json-rpc")
}
} }