gregoryxie / nicer-rack

MIT License
0 stars 0 forks source link

Add threaded queue for commands in music_server, fix indexing bug #15

Closed tristan1049 closed 2 years ago

tristan1049 commented 2 years ago

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.