Details
-
Bug
-
Resolution: Cannot Reproduce
-
Not Evaluated
-
None
-
1.0.2
-
None
-
Nokia N900
Description
When calling stop() on an active session its state changes from 'Connected' to 'Closing' but never reaches 'Disconnected' (and the connection on the device is not being terminated).
In detail I tried to disconnect an active session by this code
QList<QNetworkConfiguration> configurations = mManager.allConfigurations ( QNetworkConfiguration::Discovered );
QNetworkConfiguration config;
foreach(config, configurations) {
if(config.state() == QNetworkConfiguration::Active ) {
mSession = new QNetworkSession(config, this);
qDebug() << "about to stop";
mSession->stop();
while(mSession->state() != QNetworkSession::Disconnected)
}
}
The while loop remains waiting:
about to stop
Wait.. 4
Wait.. 4
Wait.. 4
Wait.. 4