This commit is contained in:
JustArchi
2019-04-04 17:56:38 +02:00
parent 1c917b4095
commit 44c5bf4ad5
5 changed files with 8 additions and 4 deletions

View File

@@ -67,7 +67,6 @@ namespace ArchiSteamFarm {
private string FilePath;
private bool ReadOnly;
// This constructor is used when creating new database
private BotDatabase([NotNull] string filePath) {
if (string.IsNullOrEmpty(filePath)) {
throw new ArgumentNullException(nameof(filePath));
@@ -76,7 +75,7 @@ namespace ArchiSteamFarm {
FilePath = filePath;
}
// This constructor is used only by deserializer
[JsonConstructor]
private BotDatabase() { }
public void Dispose() => FileSemaphore.Dispose();