MCPcopy Create free account
hub / github.com/Monibuca/engine / onStop

Method onStop

subscriber.go:430–438  ·  view source on GitHub ↗
(reason *zapcore.Field)

Source from the content-addressed store, hash-verified

428}
429
430func (s *Subscriber) onStop(reason *zapcore.Field) {
431 s.StopPlay()
432 if !s.Stream.IsClosed() {
433 s.Stop(*reason)
434 if s.Config.Internal {
435 s.Stream.Receive(s.Spesific)
436 }
437 }
438}

Callers 1

PlayBlockMethod · 0.95

Calls 4

StopPlayMethod · 0.80
IsClosedMethod · 0.65
StopMethod · 0.65
ReceiveMethod · 0.65

Tested by

no test coverage detected