diff -r 08a2d7d67ae5 -r aa932d8bf85b gmyth-stream/server/main.py --- a/gmyth-stream/server/main.py Wed Apr 04 17:08:11 2007 +0100 +++ b/gmyth-stream/server/main.py Wed Apr 04 21:53:33 2007 +0100 @@ -21,7 +21,7 @@ lib.log("Starting GMyth-Stream server") -while (server.finish is 0): +while (server.finish == 0): con, client = server.getRequest() while True: @@ -31,7 +31,7 @@ lib.log("Received %s from: %s" % (msg, client) ) - if msg is "SETUP": + if msg == "SETUP": setup = server.getMsg(1024).strip().split(" ") size = len(setup) options = [] @@ -52,21 +52,21 @@ setup[6], setup[7], setup[8], setup[9], options) - if ret is 0: + if ret == 0: server.Ack("SETUP") else: server.sendMsg(lib.log(ret)) - elif msg is "PLAY": + elif msg == "PLAY": media.play() server.Ack("PLAY") - elif msg is "STOP": + elif msg == "STOP": media.stop() server.Ack("STOP") - elif msg is "CLOSE": + elif msg == "CLOSE": server.finish = 1 media.stop() server.Ack("CLOSE")