caf2003d96
Previously, addnext would try to unconditionally add at index one into a queue. This panicked if the queue was empty. Added two protections, one that checks the index in the InsertTrack function, the other in the addnext command itself to insert at zero if the queue is empty.
11 lines
218 B
Go
11 lines
218 B
Go
/*
|
|
* MumbleDJ
|
|
* By Matthieu Grieger
|
|
* Copyright (c) 2016 Matthieu Grieger (MIT License)
|
|
* commands/addnext_test.go
|
|
*/
|
|
|
|
package commands
|
|
|
|
// TODO: Add regression test for bug where addnext fails on an empty queue.
|