Browse Source

we have to guarantee this

synchronous
Volker Birk 5 years ago
parent
commit
89287c7cae
  1. 4
      passphrase_cache.cc

4
passphrase_cache.cc

@ -49,8 +49,10 @@ namespace pEp {
{
std::lock_guard<std::mutex> lock(_mtx);
if (_cache.empty())
if (_cache.empty()) {
_which = _cache.end();
throw std::underflow_error("empty passphrase cache");
}
if (_which == _cache.begin()) {
_which = _cache.end();

Loading…
Cancel
Save