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:
		@@ -391,8 +391,12 @@ function change_song_post(coll, next_song, conf, callback, socket) {
 | 
				
			|||||||
                        if(!callback) {
 | 
					                        if(!callback) {
 | 
				
			||||||
                            io.to(coll).emit("channel", {type: "song_change", time: Functions.get_time(), remove: conf[0].removeplay});
 | 
					                            io.to(coll).emit("channel", {type: "song_change", time: Functions.get_time(), remove: conf[0].removeplay});
 | 
				
			||||||
                            send_play(coll);
 | 
					                            send_play(coll);
 | 
				
			||||||
 | 
					                        } else {
 | 
				
			||||||
 | 
					                            if(socket == undefined) {
 | 
				
			||||||
 | 
					                                io.to(coll).emit("channel", {type: "song_change", time: Functions.get_time(), remove: conf[0].removeplay});
 | 
				
			||||||
                            } else {
 | 
					                            } else {
 | 
				
			||||||
                                socket.to(coll).emit("channel", {type: "song_change", time: Functions.get_time(), remove: conf[0].removeplay});
 | 
					                                socket.to(coll).emit("channel", {type: "song_change", time: Functions.get_time(), remove: conf[0].removeplay});
 | 
				
			||||||
 | 
					                            }
 | 
				
			||||||
                            send_play(coll, socket, true);
 | 
					                            send_play(coll, socket, true);
 | 
				
			||||||
                            callback();
 | 
					                            callback();
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user