func (p *PushCenter) Stop() error {

	if !p.isRunning {
		return errors.New("the push center is not started")
	}

	p.stop <- true
	p.isRunning = false

	return nil
}
func (p *PushCenter) Stop() error {

	if !p.isRunning {
		return errors.New("the push center is not started")
	}

	p.stop <- true
	p.isRunning = false

	return nil
}
func ( p * PushCenter ) Stop ( ) error { if ! p . isRunning { return errors . New ( " " ) } p . stop <- true p . isRunning = false return nil }
// Stop stops a running PushCenter.
Stop stops a running PushCenter .