To control the order of commands run when received over the socket, socket places received messages into a threaded command queue in music_server.py. This ensures that every loop within the web_serv_func initiates the next command sequentially as received from the API. This fixes bugs caused by skipping songs quickly on the UI.
Also fixed an indexing bug that would occur whenever the last song on the queue played through, which would cause the queue to stop working. Queue appears to be fully functional now, haven't yet tested with audio however.
To control the order of commands run when received over the socket, socket places received messages into a threaded command queue in music_server.py. This ensures that every loop within the web_serv_func initiates the next command sequentially as received from the API. This fixes bugs caused by skipping songs quickly on the UI.
Also fixed an indexing bug that would occur whenever the last song on the queue played through, which would cause the queue to stop working. Queue appears to be fully functional now, haven't yet tested with audio however.