#5657 Fix wrong logic about checking if serial key expired
This commit is contained in:
parent
859608424d
commit
e65631c451
|
@ -455,7 +455,7 @@ Server::switchScreen(BaseClientProxy* dst,
|
||||||
assert(dst != NULL);
|
assert(dst != NULL);
|
||||||
|
|
||||||
// if trial is expired, exit the process
|
// if trial is expired, exit the process
|
||||||
if (!m_args.m_serial.isExpired(std::time(0))) {
|
if (m_args.m_serial.isExpired(std::time(0))) {
|
||||||
LOG((CLOG_ERR "trial has expired, aborting server"));
|
LOG((CLOG_ERR "trial has expired, aborting server"));
|
||||||
exit(kExitSuccess);
|
exit(kExitSuccess);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue