Permalink
Browse files

Checks if the second config file actually exists first

  • Loading branch information...
1 parent 33053f3 commit 24ff26b39846df7b9f44228af68c3d15f9e7702b @KBomba committed Feb 14, 2015
Showing with 2 additions and 1 deletion.
  1. +2 −1 MinerControl/MiningEngine.cs
@@ -361,8 +361,9 @@ private string GetConfigPath()
Process[] processList = Process.GetProcessesByName(config);
if (processList.Length > 1) config += processList.Length;
+ config += ".conf";
- return config + ".conf";
+ return File.Exists(config)? config : "MinerControl.conf";
}
private void LoadService(IService service, IDictionary<string, object> data, string name)

0 comments on commit 24ff26b

Please sign in to comment.