Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/presence/presenceservice.py
diff options
context:
space:
mode:
authorMorgan Collett <morgan.collett@gmail.com>2007-08-25 13:58:09 (GMT)
committer Morgan Collett <morgan.collett@gmail.com>2007-08-25 13:58:09 (GMT)
commitfc4e4692d754ffb2cea315469d63ead7044d600e (patch)
treee018d4e14f53447cb54e4c68c977fd67fde95d44 /sugar/presence/presenceservice.py
parent4cfc941e499906fa86ca53b9691fe3bc22c09dc4 (diff)
parent1cb214bc967f16f4fd2f1bdc5dec65b444e01ef6 (diff)
Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
Diffstat (limited to 'sugar/presence/presenceservice.py')
-rw-r--r--sugar/presence/presenceservice.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/sugar/presence/presenceservice.py b/sugar/presence/presenceservice.py
index f4f102d..a271282 100644
--- a/sugar/presence/presenceservice.py
+++ b/sugar/presence/presenceservice.py
@@ -108,8 +108,15 @@ class PresenceService(gobject.GObject):
"""
if not self._ps_:
try:
+ # NOTE: We need to follow_name_owner_changes here
+ # because we can not connect to a signal unless
+ # we follow the changes or we start the service
+ # before we connect. Starting the service here
+ # causes a major bottleneck during startup
ps = dbus.Interface(
- self._bus.get_object(DBUS_SERVICE,DBUS_PATH),
+ self._bus.get_object(DBUS_SERVICE,
+ DBUS_PATH,
+ follow_name_owner_changes=True),
DBUS_INTERFACE
)
except dbus.exceptions.DBusException, err: