func (p *ProtocolHandler) StopNotify(n ConnectionManagerNotifee) {
	p.notifeeLock.Lock()
	found := -1
	for i, notif := range p.notifees {
		if notif == n {
			found = i
			break
		}
	}
	if found != -1 {
		p.notifees = append(p.notifees[:found], p.notifees[found+1:]...)
	}
	p.notifeeLock.Unlock()
}
// StopNotify stops notifying a certain notifee about certain events.
StopNotify stops notifying a certain notifee about certain events.
// StopNotify stops notifying a certain notifee about certain events .
func (p *ProtocolHandler) StopNotify(n ConnectionManagerNotifee) {
	p.notifeeLock.Lock()
	found := -1
	for i, notif := range p.notifees {
		if notif == n {
			found = i
			break
		}
	}
	if found != -1 {
		p.notifees = append(p.notifees[:found], p.notifees[found+1:]...)
	}
	p.notifeeLock.Unlock()
}
func ( p * ProtocolHandler ) StopNotify ( n ConnectionManagerNotifee ) { p . notifeeLock . Lock ( ) found := - 1 for i , notif := range p . notifees { if notif == n { found = i break } } if found != - 1 { p . notifees = append ( p . notifees [ : found ] , p . notifees [ found + 1 : ] ... ) } p . notifeeLock . Unlock ( ) }
StopNotify stops notifying a certain notifee about certain events.
StopNotify stops notifying a certain notifee about certain events .