1.1 --- a/gmyth-stream/server/main.py Wed Apr 04 17:08:11 2007 +0100
1.2 +++ b/gmyth-stream/server/main.py Wed Apr 04 21:53:33 2007 +0100
1.3 @@ -21,7 +21,7 @@
1.4
1.5 lib.log("Starting GMyth-Stream server")
1.6
1.7 -while (server.finish is 0):
1.8 +while (server.finish == 0):
1.9 con, client = server.getRequest()
1.10
1.11 while True:
1.12 @@ -31,7 +31,7 @@
1.13
1.14 lib.log("Received %s from: %s" % (msg, client) )
1.15
1.16 - if msg is "SETUP":
1.17 + if msg == "SETUP":
1.18 setup = server.getMsg(1024).strip().split(" ")
1.19 size = len(setup)
1.20 options = []
1.21 @@ -52,21 +52,21 @@
1.22 setup[6], setup[7], setup[8],
1.23 setup[9], options)
1.24
1.25 - if ret is 0:
1.26 + if ret == 0:
1.27 server.Ack("SETUP")
1.28 else:
1.29 server.sendMsg(lib.log(ret))
1.30
1.31
1.32 - elif msg is "PLAY":
1.33 + elif msg == "PLAY":
1.34 media.play()
1.35 server.Ack("PLAY")
1.36
1.37 - elif msg is "STOP":
1.38 + elif msg == "STOP":
1.39 media.stop()
1.40 server.Ack("STOP")
1.41
1.42 - elif msg is "CLOSE":
1.43 + elif msg == "CLOSE":
1.44 server.finish = 1
1.45 media.stop()
1.46 server.Ack("CLOSE")