diff --git a/src/OrientDB-Net.binary.Innov8tive/API/ODatabase.cs b/src/OrientDB-Net.binary.Innov8tive/API/ODatabase.cs index b52f71a7..8379ed5b 100644 --- a/src/OrientDB-Net.binary.Innov8tive/API/ODatabase.cs +++ b/src/OrientDB-Net.binary.Innov8tive/API/ODatabase.cs @@ -19,8 +19,6 @@ namespace Orient.Client { public class ODatabase : IDisposable { - private bool _containsConnection; - private ODocument _databaseProperties; public IDictionary ClientCache { get; private set; } @@ -306,14 +304,9 @@ public long CountRecords public void Close() { - if (_containsConnection) - { - GetConnection().Database = null; + GetConnection().Database = null; - GetConnection().Dispose(); - - _containsConnection = false; - } + GetConnection().Dispose(); } public void Dispose()