From 9d99dda4ebc193de99baead7063acd2f293c2f9c Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Fri, 25 Mar 2011 14:59:38 +0100 Subject: Only show AirPlayer Service runnign message if it really does --- AirPlayService.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AirPlayService.py b/AirPlayService.py index c2a0367..9e6ef3b 100644 --- a/AirPlayService.py +++ b/AirPlayService.py @@ -208,8 +208,6 @@ class AsyncoreThread(threading.Thread): class AirPlayService(asyncore.dispatcher): def __init__(self, name=None, host="0.0.0.0", port=22555): - print "AirPlayService running" - # create socket server asyncore.dispatcher.__init__(self) self.create_socket(socket.AF_INET, socket.SOCK_STREAM) @@ -231,6 +229,8 @@ class AirPlayService(asyncore.dispatcher): self.thread.is_finished = False self.thread.start() + print "AirPlayService running" + def handle_accept(self): pair = self.accept() if pair is None: -- cgit v1.1-32-gdbae