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

Method CloseRx

internal/session/session.go:204–211  ·  view source on GitHub ↗

CloseRx closes RxChan if not already closed. Idempotent.

()

Source from the content-addressed store, hash-verified

202
203// CloseRx closes RxChan if not already closed. Idempotent.
204func (s *Session) CloseRx() {
205 s.mu.Lock()
206 defer s.mu.Unlock()
207 if !s.rxClosed {
208 s.rxClosed = true
209 close(s.RxChan)
210 }
211}
212
213// HasPendingTx reports whether DrainTx would emit at least one frame.
214func (s *Session) HasPendingTx() bool {

Callers 2

gcIdleSessionsMethod · 0.80
routeRxMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected