Commit 944086b5 authored by Slava Monich's avatar Slava Monich

[connectionagent] Set delayedTethering to false when clearing...

[connectionagent] Set delayedTethering to false when clearing tetheringWifiTech pointer. Fixes JB#38937

The assumption seems to be that if delayedTethering is true then
tetheringWifiTech is never NULL. If that happens not to be the case
then QConnectionAgent::serviceStateChanged can (and does) crash.
parent 3ba10b0c
/****************************************************************************
**
** Copyright (C) 2014 Jolla Ltd
** Copyright (C) 2014-2017 Jolla Ltd
** Contact: lorn.potter@gmail.com
**
**
** GNU Lesser General Public License Usage
** This file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
......@@ -484,6 +483,7 @@ void QConnectionAgent::techChanged()
knownTechnologies.clear();
}
if (!netman->getTechnology("wifi")) {
delayedTethering = false;
tetheringWifiTech = 0;
return;
}
......
Markdown is supported
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