From 4e48408eaa8a6bb702a6f77aec2b349664eb18fd Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Tue, 21 Mar 2017 16:30:28 +0800 Subject: [PATCH] Fire up the timer to clean inactive sessions --- src/webui/abstractwebapplication.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webui/abstractwebapplication.cpp b/src/webui/abstractwebapplication.cpp index 0e318da5c..436a5325b 100644 --- a/src/webui/abstractwebapplication.cpp +++ b/src/webui/abstractwebapplication.cpp @@ -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()