| 250 | } |
| 251 | |
| 252 | void 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 | |
| 273 | void AccessManager::checkAuthBlockTimeout() |
| 274 | { |