#5657 Fix wrong logic about checking if serial key expired

This commit is contained in:
Jerry (Xinyu Hou) 2016-10-18 13:02:36 +01:00
parent 859608424d
commit e65631c451
1 changed files with 1 additions and 1 deletions

View File

@ -455,7 +455,7 @@ Server::switchScreen(BaseClientProxy* dst,
assert(dst != NULL);
// 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"));
exit(kExitSuccess);
}