// OnStop implements cmn.Service
OnStop implements cmn.Service
// OnStop implements cmn . Service
func (sl *SignerListenerEndpoint) OnStop() {
	sl.instanceMtx.Lock()
	defer sl.instanceMtx.Unlock()
	_ = sl.Close()
	if sl.listener != nil {
		if err := sl.listener.Close(); err != nil {
			sl.Logger.Error("Closing Listener", "err", err)
			sl.listener = nil
		}
	}
	sl.pingTimer.Stop()
}
func ( sl * SignerListenerEndpoint ) OnStop ( ) { sl . instanceMtx . Lock ( ) defer sl . instanceMtx . Unlock ( ) _ = sl . Close ( ) if sl . listener != nil { if err := sl . listener . Close ( ) ; err != nil { sl . Logger . Error ( " " , " " , err ) sl . listener = nil } } sl . pingTimer . Stop ( ) }
OnStop implements cmn.Service
OnStop implements cmn . Service
// Stop listening