MCPcopy Create free account
hub / github.com/awawa-dev/HyperHDR / checkTimeout

Method checkTimeout

sources/base/AccessManager.cpp:252–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252void AccessManager::checkTimeout()
253{
254 const uint64_t now = InternalClock::now();
255
256 QMapIterator<QString, AuthDefinition> i(_pendingRequests);
257 while (i.hasNext())
258 {
259 i.next();
260
261 const AuthDefinition& def = i.value();
262 if (def.timeoutTime <= now)
263 {
264 emit SignalTokenNotifyClient(false, def.caller, QString(), def.comment, def.id, def.tan);
265 _pendingRequests.remove(i.key());
266 }
267 }
268 // abort if empty
269 if (_pendingRequests.isEmpty())
270 _timer->stop();
271}
272
273void AccessManager::checkAuthBlockTimeout()
274{

Callers

nothing calls this directly

Calls 4

isEmptyMethod · 0.80
nextMethod · 0.45
valueMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected