Skip to content
This repository was archived by the owner on Oct 28, 2023. It is now read-only.

Commit 24ff26b

Browse files
committed
Checks if the second config file actually exists first
1 parent 33053f3 commit 24ff26b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MinerControl/MiningEngine.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,9 @@ private string GetConfigPath()
361361

362362
Process[] processList = Process.GetProcessesByName(config);
363363
if (processList.Length > 1) config += processList.Length;
364+
config += ".conf";
364365

365-
return config + ".conf";
366+
return File.Exists(config)? config : "MinerControl.conf";
366367
}
367368

368369
private void LoadService(IService service, IDictionary<string, object> data, string name)

0 commit comments

Comments
 (0)