mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 23:53:13 +09:00
Fix a bug causing all slaves data gets cleared on master startup (#165)
This commit is contained in:
1 parent
0b34f07954
commit
3b814eeea4
1 file changed
+1
-1
@@ -235,7 +235,7 @@ const db = {};
|
|||||||
|
|
||||||
(function(){
|
(function(){
|
||||||
try{
|
try{
|
||||||
let x = fs.statSync(path.resolve(config.databaseDirectory, "/slaves.json"));
|
let x = fs.statSync(path.resolve(config.databaseDirectory, "slaves.json"));
|
||||||
console.log(`loading slaves from path.resolve(config.databaseDirectory, "slaves.json")`);
|
console.log(`loading slaves from path.resolve(config.databaseDirectory, "slaves.json")`);
|
||||||
slaves = JSON.parse(fs.readFileSync(path.resolve(config.databaseDirectory, "slaves.json")));
|
slaves = JSON.parse(fs.readFileSync(path.resolve(config.databaseDirectory, "slaves.json")));
|
||||||
} catch (e){
|
} catch (e){
|
||||||
|
|||||||
Reference in new issue
Block a user