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