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

QNetworkSession::stop() not working on N900

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.0.2
    • Fix Version/s: None
    • Component/s: Bearer Management
    • Labels:
      None
    • Environment:
      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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes