Version 2.0.4 - Fix du crash Lavalink (Temporaire)
This commit is contained in:
		@@ -91,7 +91,7 @@ module.exports.addNodes = function (data) {
 | 
			
		||||
    nlog.step.init("add_nodes", "Ajout d'un nouveau noeud dans la base de donnée de nodes : " + data.host)
 | 
			
		||||
    try {
 | 
			
		||||
        var nodes_data = readNodesFile()
 | 
			
		||||
        data.retryAmount = 1
 | 
			
		||||
        data.retryAmount = 5
 | 
			
		||||
        nodes_data.push(data)
 | 
			
		||||
        saveNodesFile(nodes_data) 
 | 
			
		||||
        nlog.step.end("add_nodes")
 | 
			
		||||
 
 | 
			
		||||
@@ -557,8 +557,9 @@ function IOConnection(io) {
 | 
			
		||||
 | 
			
		||||
                GetRequest("RESTART", () => {
 | 
			
		||||
                    const pm2 = require('pm2');
 | 
			
		||||
                    const child_process = require('child_process')
 | 
			
		||||
                    let req = child_process.exec(`ssh -o StrictHostKeyChecking=no raphix@omega.raphix.fr sudo -S systemctl restart lavalink `)
 | 
			
		||||
                    pm2.restart('Subsonics')
 | 
			
		||||
             
 | 
			
		||||
                    GetAnswer("RESTART", "OK")
 | 
			
		||||
                
 | 
			
		||||
                })
 | 
			
		||||
 
 | 
			
		||||
@@ -6,7 +6,6 @@ const shuffle = getID("shuffle")
 | 
			
		||||
 | 
			
		||||
const durationBar = getID("duration")
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
const video_img = getID("video_img")
 | 
			
		||||
const video_title = getID("video_title")
 | 
			
		||||
const video_artist = getID("video_artist")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user