mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-30 18:50:11 +08:00
Fire up the timer to clean inactive sessions
This commit is contained in:
parent
e26b30a5f4
commit
4e48408eaa
@ -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 New Issue
Block a user