MCPcopy Create free account
hub / github.com/Hidden-Node/GooseRelayVPN-AndroidClient / Stop

Method Stop

internal/session/session.go:99–101  ·  view source on GitHub ↗

Stop signals the rxLoop goroutine to exit. Must be called after removing the session from the routing table so no new ProcessRx calls can arrive.

()

Source from the content-addressed store, hash-verified

97// Stop signals the rxLoop goroutine to exit. Must be called after removing the
98// session from the routing table so no new ProcessRx calls can arrive.
99func (s *Session) Stop() {
100 s.stopOnce.Do(func() { close(s.rxDone) })
101}
102
103// rxLoop is a per-session goroutine that delivers frames from rxInbox to RxChan
104// in sequence order. Running it independently from poll workers means a slow

Callers 14

ProcessRxMethod · 0.95
deliverRxMethod · 0.95
runStatsLoopMethod · 0.45
openSessionMethod · 0.45
gcDoneSessionsMethod · 0.45
gcIdleSessionsMethod · 0.45
runIdleGCLoopMethod · 0.45
runScriptStatsLoopMethod · 0.45
runStatsLoopMethod · 0.45
routeRxMethod · 0.45

Calls

no outgoing calls

Tested by 1