Commit 619c4ac8 authored by Àlex Fiestas's avatar Àlex Fiestas
Browse files

Check if the map contains the session.

BUG: 308324
parent 386c61e0
......@@ -127,7 +127,7 @@ void ObexFtpDaemon::offlineMode()
QHash<QString, ObexSession*>::const_iterator i = d->m_sessionMap.constBegin();
while (i != d->m_sessionMap.constEnd()) {
if (d->m_sessionMap[i.key()]) {
if (d->m_sessionMap.contains(i.key())) {
d->m_sessionMap[i.key()]->Disconnect();
d->m_sessionMap[i.key()]->Close();
d->m_sessionMap[i.key()]->deleteLater();
......
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