diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2013-03-22 19:08:53 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2013-03-22 19:08:53 (GMT) |
commit | db05a2aac8543266b537da7d72c3f83bd52e49fd (patch) | |
tree | 963e1fb1b163f37fc9ee2e2ea3aac9fc8c328637 | |
parent | bd2f6e6c7bcf82ce8f5e3fa2bc099a3743f6ea10 (diff) |
Don't try to connect to himself
If the activity is started sharing, should not try to connect
to the local server.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r-- | activity.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activity.py b/activity.py index ab5fcee..1c6ee21 100644 --- a/activity.py +++ b/activity.py @@ -159,6 +159,10 @@ class JournalShare(activity.Activity): def watch_for_tubes(self): """Watch for new tubes.""" + if self.server_proc is not None: + # I am sharing, then, don't try to connect to the tubes + return + tubes_chan = self.shared_activity.telepathy_tubes_chan tubes_chan[telepathy.CHANNEL_TYPE_TUBES].connect_to_signal('NewTube', |