[PATCH v2] service: Keep ordering and send all services in ServicesAdded

Daniel Wagner wagi at monom.org
Tue Feb 28 05:39:41 PST 2012


Hi Patrik,

It seems there is one little issue still there. Here is the log
from my test UI. During startup I got this here


Services added:  /net/connman/service/ethernet_002481c57c73_cable
Services added:  /net/connman/service/wifi_0019cb85fd2c_4349543031_managed_psk
Services added:  /net/connman/service/wifi_0019cb85fd2c_62656c6b696e2e37653433_managed_psk
Services added:  /net/connman/service/wifi_0019cb85fd2c_45617379426f782d364642313436_managed_psk
Services added:  /net/connman/service/wifi_0019cb85fd2c_45617379426f782d454335413236_managed_psk
Services added:  /net/connman/service/wifi_0019cb85fd2c_4d617276656c6c204d6963726f204150_managed_psk
Services added:  /net/connman/service/wifi_0019cb85fd2c_4845494b4f2d50435f4e65747a7765726b_managed_psk
Services added:  /net/connman/service/wifi_0019cb85fd2c_5241444941534e4554_managed_psk
Services added:  /net/connman/service/vpn_vpn_bmw_carit_de_bmw_carit_intra
Services added:  /net/connman/service/vpn_monom_org_monom_org


and a while later (a couple of minutes):


Manager PropertyChanged:  SessionMode
Manager PropertyChanged:  State
Manager PropertyChanged:  OfflineMode
Manager PropertyChanged:  EnabledDebugs
Manager PropertyChanged:  AvailableDebugs
Services removed:  /net/connman/service/wifi_0019cb85fd2c_45617379426f782d364642313436_managed_psk
Services removed:  /net/connman/service/wifi_0019cb85fd2c_4845494b4f2d50435f4e65747a7765726b_managed_psk
Services removed:  /net/connman/service/wifi_0019cb85fd2c_45617379426f782d454335413236_managed_psk
Services removed:  /net/connman/service/wifi_0019cb85fd2c_6f3244534c_managed_wep
ERROR:dbus.connection:Exception in handler for D-Bus signal:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 214, in maybe_handle_message
    self._handler(*args, **kwargs)
  File "imposter.py", line 491, in services_removed
    self.service_pane.remove_service(path)
  File "imposter.py", line 185, in remove_service
    self.services[path].deleteLater()
KeyError: dbus.ObjectPath('/net/connman/service/wifi_0019cb85fd2c_6f3244534c_managed_wep')


So I get a ServiceRemoved signal for a Services which was never added. 
That is properly not something we want, no?

cheers,
daniel



More information about the connman mailing list