change command line KeepAlive implementation
This commit is contained in:
parent
1ddc4ff755
commit
9e2518fa9b
1 changed files with 3 additions and 3 deletions
6
main.cpp
6
main.cpp
|
@ -293,10 +293,10 @@ int main(int argc, char *argv[])
|
||||||
#endif
|
#endif
|
||||||
commandLineParser.addOption(subprocessRemoteSocket);
|
commandLineParser.addOption(subprocessRemoteSocket);
|
||||||
|
|
||||||
QCommandLineOption processAutoStart("autostart", "SMSub autostart mode setting.", "autostart");
|
QCommandLineOption processAutoStart("autostart", "SMSub autostart mode.", "autostart");
|
||||||
commandLineParser.addOption(processAutoStart);
|
commandLineParser.addOption(processAutoStart);
|
||||||
|
|
||||||
QCommandLineOption processKeepAlive("keepalive", "SMSub keepalive mode setting.", "keepalive");
|
QCommandLineOption processKeepAlive("keepalive", "SMSub keepalive mode.", "keepalive");
|
||||||
commandLineParser.addOption(processKeepAlive);
|
commandLineParser.addOption(processKeepAlive);
|
||||||
|
|
||||||
QCommandLineOption processTimeout("timeout", "SMSub termination timeout.", "timeout");
|
QCommandLineOption processTimeout("timeout", "SMSub termination timeout.", "timeout");
|
||||||
|
@ -384,7 +384,7 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
if (commandLineParser.isSet(processKeepAlive)) {
|
if (commandLineParser.isSet(processKeepAlive)) {
|
||||||
const QString claKeepAlive = commandLineParser.value(processKeepAlive);
|
const QString claKeepAlive = commandLineParser.value(processKeepAlive);
|
||||||
if (claKeepAlive != "0" || claKeepAlive.toLower() != "false" || claKeepAlive.toLower() != "no") {
|
if (claKeepAlive == "1" || claKeepAlive.toLower() == "true" || claKeepAlive.toLower() == "yes") {
|
||||||
keepAlive = true;
|
keepAlive = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue