Fire up the timer to clean inactive sessions

This commit is contained in:
Chocobo1 2017-03-21 16:30:28 +08:00 committed by sledgehammer999
commit 562dd41ab2
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2

View file

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