private void ServerStop(object sender, ServerEventArgs e) { TriggerEvent("ServerStop"); }
public void OnStop(object sender, ServerEventArgs e) { this.is_active = false; this.listener.Stop(); Thread.Sleep(100); serverThread.Abort(); listener = null; }