mirror of
https://github.com/OpenFusionProject/Client.git
synced 2024-11-22 05:30:05 +00:00
Check before deleting rankurl.txt
This commit is contained in:
parent
a73b3a4b3f
commit
fab7d53150
@ -75,8 +75,10 @@ function setGameInfo(serverUUID) {
|
||||
console.log("Using rank endpoint " + rankurl)
|
||||
remotefs.writeFileSync(__dirname+"\\rankurl.txt", rankurl);
|
||||
} else {
|
||||
if (remotefs.existsSync(__dirname+"\\rankurl.txt")) {
|
||||
// delete the file, this server won't be using it
|
||||
remotefs.unlinkSync(__dirname+"\\rankurl.txt")
|
||||
remotefs.unlinkSync(__dirname+"\\rankurl.txt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user