mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-09 05:13:36 +08:00
#5657 Fix wrong logic about checking if serial key expired
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user