mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Trying to mitigate song-change-error
This commit is contained in:
@@ -392,7 +392,11 @@ function change_song_post(coll, next_song, conf, callback, socket) {
|
||||
io.to(coll).emit("channel", {type: "song_change", time: Functions.get_time(), remove: conf[0].removeplay});
|
||||
send_play(coll);
|
||||
} else {
|
||||
socket.to(coll).emit("channel", {type: "song_change", time: Functions.get_time(), remove: conf[0].removeplay});
|
||||
if(socket == undefined) {
|
||||
io.to(coll).emit("channel", {type: "song_change", time: Functions.get_time(), remove: conf[0].removeplay});
|
||||
} else {
|
||||
socket.to(coll).emit("channel", {type: "song_change", time: Functions.get_time(), remove: conf[0].removeplay});
|
||||
}
|
||||
send_play(coll, socket, true);
|
||||
callback();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user