diff options
| -rw-r--r-- | AirPlayService.py | 4 |
1 files 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): | |||
| 208 | 208 | ||
| 209 | class AirPlayService(asyncore.dispatcher): | 209 | class AirPlayService(asyncore.dispatcher): |
| 210 | def __init__(self, name=None, host="0.0.0.0", port=22555): | 210 | def __init__(self, name=None, host="0.0.0.0", port=22555): |
| 211 | print "AirPlayService running" | ||
| 212 | |||
| 213 | # create socket server | 211 | # create socket server |
| 214 | asyncore.dispatcher.__init__(self) | 212 | asyncore.dispatcher.__init__(self) |
| 215 | self.create_socket(socket.AF_INET, socket.SOCK_STREAM) | 213 | self.create_socket(socket.AF_INET, socket.SOCK_STREAM) |
| @@ -231,6 +229,8 @@ class AirPlayService(asyncore.dispatcher): | |||
| 231 | self.thread.is_finished = False | 229 | self.thread.is_finished = False |
| 232 | self.thread.start() | 230 | self.thread.start() |
| 233 | 231 | ||
| 232 | print "AirPlayService running" | ||
| 233 | |||
| 234 | def handle_accept(self): | 234 | def handle_accept(self): |
| 235 | pair = self.accept() | 235 | pair = self.accept() |
| 236 | if pair is None: | 236 | if pair is None: |
