private void notifyActive(Peer peer) {
		for(Listener listener : new HashSet<>(listeners)) {
			listener.onActive(peer);
		}
	}
private void notifyActive ( Peer peer ) { for ( Listener listener : new HashSet < > ( listeners ) ) { listener . onActive ( peer ) ; } }
Notifies all registered listeners of the active peer