mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-27 11:49:01 +03:00
Fire up the timer to clean inactive sessions
This commit is contained in:
parent
e26b30a5f4
commit
4e48408eaa
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue