MCPcopy
hub / github.com/tinode/chat / purgeChannels

Method purgeChannels

server/session.go:399–409  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

397}
398
399func (s *Session) purgeChannels() {
400 for len(s.send) > 0 {
401 <-s.send
402 }
403 for len(s.stop) > 0 {
404 <-s.stop
405 }
406 for len(s.detach) > 0 {
407 <-s.detach
408 }
409}
410
411// cleanUp is called when the session is terminated to perform resource cleanup.
412func (s *Session) cleanUp(expired bool) {

Callers 1

cleanUpMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected