private void OnStopEvent(ZyreEventStop stopEvent) { var temp = StopEvent; // for thread safety temp?.Invoke(this, stopEvent); }
private void ZyreStopEvent(object sender, ZyreEventStop e) { _connectedPeers.RemoveAll(x => x.SenderUuid == e.SenderUuid); _headersByPeerGuid.Remove(e.SenderUuid); EventsLogger($"Stopped: {e.SenderName} {e.SenderUuid.ToShortString6()}"); UpdateAndShowGroups(); }