Correct harmless VS code analysis warnings

This commit is contained in:
JustArchi
2016-07-08 07:41:36 +02:00
parent 77413f13e2
commit 561fb66e7a
10 changed files with 86 additions and 31 deletions

View File

@@ -82,6 +82,8 @@ namespace ArchiSteamFarm {
}
}
private readonly object FileLock = new object();
private string FilePath;
internal static BotDatabase Load(string filePath) {
@@ -133,7 +135,7 @@ namespace ArchiSteamFarm {
return;
}
lock (FilePath) {
lock (FileLock) {
for (byte i = 0; i < 5; i++) {
try {
File.WriteAllText(FilePath, json);