summaryrefslogtreecommitdiffstats
path: root/src/plugins/bearer
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2011-09-19 13:34:04 (GMT)
committerShane Kearns <shane.kearns@accenture.com>2011-09-19 16:02:49 (GMT)
commita0ad54acd33873316908080f432768fdf3e3bfc2 (patch)
tree1538f18412e3b8ed67d5114fa83636d793100d6f /src/plugins/bearer
parent5d626bb3a510956415a43739211b7d127de0757f (diff)
downloadQt-a0ad54acd33873316908080f432768fdf3e3bfc2.zip
Qt-a0ad54acd33873316908080f432768fdf3e3bfc2.tar.gz
Qt-a0ad54acd33873316908080f432768fdf3e3bfc2.tar.bz2
symbian bearer: fix tst_qnetworksession test failures
Symbian is not reporting the expected KLinkLayerClosed event on the last RConnection handle. Instead, it reports the event KConfigDaemonFinishedDeregistrationStop, which indicates the nif plugin is being destroyed (this is followed by unload events) To fix, this event is treated the same as a link down event, and results in the state change to disconnected. Either there has been a behaviour change in the platform, or the test was previously run with another user of the API running in the background (e.g. WLAN wizard, connection monitor) which prevented the unload. Task-Number: QTBUG-21382 Reviewed-By: mread
Diffstat (limited to 'src/plugins/bearer')
-rw-r--r--src/plugins/bearer/symbian/qnetworksession_impl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/bearer/symbian/qnetworksession_impl.cpp b/src/plugins/bearer/symbian/qnetworksession_impl.cpp
index fc65b86..a7dad2b 100644
--- a/src/plugins/bearer/symbian/qnetworksession_impl.cpp
+++ b/src/plugins/bearer/symbian/qnetworksession_impl.cpp
@@ -1377,6 +1377,9 @@ void QNetworkSessionPrivateImpl::handleSymbianConnectionStatusChange(TInt aConne
newState(QNetworkSession::Closing,accessPointId);
break;
+ // Connection stopped
+ case KConfigDaemonFinishedDeregistrationStop: //this comes if this is the last session, instead of KLinkLayerClosed
+ case KConfigDaemonFinishedDeregistrationPreserve:
// Connection closed
case KConnectionClosed:
case KLinkLayerClosed: