Commit 9cf51bb1 authored by David Edmundson's avatar David Edmundson
Browse files

Allow small timeout intervals in IdleInterface

A threshold exists to stop users flooding the server for no reason.

However, there is a usecase for small timeouts.

rsibreak has a "please relax for 20 seconds" interface. Here it makes
perfect sense to know if a user is active in small increments. The plan
is to start a 1s timer and wait for that. Then we wait locally for 20s
without a resume event.
parent 8e86b7a1
......@@ -144,8 +144,8 @@ void IdleTimeoutInterface::setup(quint32 timeout)
timer = new QTimer(this);
// less than 5 sec is not idle by definition
timer->setInterval(qMax(timeout, 5000u));
// less than 500 msec is not idle by definition
timer->setInterval(qMax(timeout, 500u));
QObject::connect(timer, &QTimer::timeout, this,
[this] {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment