/// <summary> /// Close, and free the memory of the drivers.</summary> public void CloseAll() { this.Disconnect(); if (!isConnected) { isInitialized = false; } //Flush the logs Status.FlushLog(); }
} //END Read Function /// <summary> /// Close all connections after workers are stopped. /// </summary> public int CloseALL() { if (MasterMySQL != null) { MasterMySQL.Disconnect(); } if (BackupMySQL != null) { BackupMySQL.Disconnect(); } Status.FlushLog(); return(-1); }