diff --git a/code/qudio.py b/code/qudio.py index 5d6929a..8dea5e6 100644 --- a/code/qudio.py +++ b/code/qudio.py @@ -59,9 +59,11 @@ def play_callback(channel): if is_playing: logging.info("PAUSE") socketIO.emit('pause') + is_playing = False else: logging.info("PLAY") socketIO.emit('play') + is_playing = True def next_callback(channel): logging.info("NEXT")