[telepathy-ashes/master] Hack around race condition
David Laban
david.laban at collabora.co.uk
Wed Dec 2 04:10:29 PST 2009
---
ashes/tools/echo_daemon.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/ashes/tools/echo_daemon.py b/ashes/tools/echo_daemon.py
index 63fb47d..b3f15c1 100644
--- a/ashes/tools/echo_daemon.py
+++ b/ashes/tools/echo_daemon.py
@@ -139,6 +139,10 @@ def start_echo_bot(account_file, pipe_stdout):
else:
stdout = open("%s/log/echobot-%s-%s.log" %
(HOME, ACCOUNT_NAME, DATE), 'w')
+ # I think there's a race condition which can cause NameOwnerChanged to be
+ # emitted for gabble/butterfly *after* the echo bot is set up. Ideally,
+ # I should wait for this signal, but for now, a sleep will do.
+ time.sleep(1)
echo_bot = Popen(['/usr/bin/python',
os.path.join(THIS_DIR, 'echo_bot.py'),
'.*', '.*', account_file],
--
1.5.6.5
More information about the telepathy-commits
mailing list