public void clearCon() { if (con.ConnectionAlive()) { con.CloseConnection(false); } }
internal static DateTime punishmentReconnectTime = DateTime.MinValue; //This is the time where we are ALLOWED to recheck the connection. internal static bool IsConnected() { return(connection != null && connection.ConnectionAlive()); }