public override void Dispose() { disposed = true; AppDomain.CurrentDomain.ProcessExit -= CurrentDomain_ProcessExit; thread_persistence.Join(); if (db != null) { db.Dispose(); db = null; } }
public override void Dispose() { disposed = true; AppDomain.CurrentDomain.ProcessExit -= CurrentDomain_ProcessExit; if (!thread_persistence.ThreadState.HasFlag(ThreadState.Unstarted)) { thread_persistence.Join(); } if (db != null) { db.Dispose(); db = null; } }
public override void Dispose() { disposed = true; new_block_event.Set(); if (!thread_persistence.ThreadState.HasFlag(ThreadState.Unstarted)) { thread_persistence.Join(); } new_block_event.Dispose(); if (db != null) { db.Dispose(); db = null; } }