Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-539

QNetworkSession::stop() not working on N900

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 1.0.2
    • Bearer Management
    • 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)

      { sleep(1); qDebug() << "Wait.." << mSession->state(); }

      }
      }

      The while loop remains waiting:

      about to stop
      Wait.. 4
      Wait.. 4
      Wait.. 4
      Wait.. 4

      Attachments

        Activity

          People

            cristiano cristiano di flora
            deti deti
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: