Fire up the timer to clean inactive sessions

This commit is contained in:
Chocobo1 2017-03-21 16:30:28 +08:00
parent e26b30a5f4
commit 4e48408eaa

View file

@ -87,8 +87,8 @@ AbstractWebApplication::AbstractWebApplication(QObject *parent)
, session_(0)
{
QTimer *timer = new QTimer(this);
timer->setInterval(60000); // 1 min.
connect(timer, SIGNAL(timeout()), SLOT(removeInactiveSessions()));
timer->start(60 * 1000); // 1 min.
}
AbstractWebApplication::~AbstractWebApplication()