Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-22648

QDBusConnection::disconnectFromPeer and QDBusConnection::disconnectFromBus failed if connection is in invalid mode

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.8.x
    • D-Bus
    • None
    • 4.8.0.rc1

    Description

      You can not remove/disconnect QDBusConnection once it enters invalid mode.

      void QDBusConnection::disconnectFromBus(const QString &name)
      {
      if (_q_manager())

      { QMutexLocker locker(&_q_manager()->mutex); QDBusConnectionPrivate *d = _q_manager()->connection(name); if (d && d->mode != QDBusConnectionPrivate::ClientMode) <<<<<< it can be invalid mode !!! return; _q_manager()->removeConnection(name); }

      }

      And do we really need QDBusConnection::disconnectFromBus and QDBusConnection::disconnectFromPeer?
      A simple QDBusConnection::disconnect seems do the job

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            steve.k.chiu Steve K. Chiu
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes