This commit is contained in:
JustArchi
2018-01-12 19:43:34 +01:00
parent edfd84ecd1
commit 4c330ded16
4 changed files with 99 additions and 96 deletions

View File

@@ -61,13 +61,7 @@ namespace ArchiSteamFarm {
// This constructor is used only by deserializer
private BotDatabase() { }
public void Dispose() {
// Those are objects that are always being created if constructor doesn't throw exception
FileSemaphore.Dispose();
// Those are objects that might be null and the check should be in-place
MobileAuthenticator?.Dispose();
}
public void Dispose() => FileSemaphore.Dispose();
internal async Task AddBlacklistedFromTradesSteamIDs(IReadOnlyCollection<ulong> steamIDs) {
if ((steamIDs == null) || (steamIDs.Count == 0)) {