private void StatsTimerElapsed(object source, System.Timers.ElapsedEventArgs e) { if (!Enabled) { WriteTimer.Stop(); return; } if (LogSyncConnectorEnable) { LogConnectorStats(); } if (LogRegionEnable) { LogStats("scene", LogRegionDirectory, LogRegionFilenamePrefix, LogRegionFileTimeMinutes, LogRegionFlushWrites, regionStatFields); } if (LogServerEnable) { LogStatsCombineCategory("server", LogServerDirectory, LogServerFilenamePrefix, LogServerFileTimeMinutes, LogServerFlushWrites, serverStatFields); } if (LogLLUDPBWAggEnabled) { LogLLUDPStats(); } }
public void Dispose() { Enabled = false; LogSyncConnectorEnable = false; if (WriteTimer != null) { WriteTimer.Stop(); WriteTimer.Dispose(); WriteTimer = null; } Close(); }
private void bWriteEnd_Click(object sender, EventArgs e) { WriteTimer.Stop(); }
protected override void OnStop() { WriteTimer.Stop(); }