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:
** 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()
if (!netman->getTechnology("wifi")) {
delayedTethering = false;
tetheringWifiTech = 0;
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