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

Method maybeScheduleClusterWriteLoop

server/session.go:377–385  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

375}
376
377func (s *Session) maybeScheduleClusterWriteLoop() {
378 if s.multi != nil {
379 s.multi.scheduleClusterWriteLoop()
380 return
381 }
382 if s.isMultiplex() {
383 s.scheduleClusterWriteLoop()
384 }
385}
386
387func (s *Session) detachSession(fromTopic string) {
388 if atomic.LoadInt32(&s.terminating) == 0 {

Callers 2

detachSessionMethod · 0.95
stopSessionMethod · 0.95

Calls 2

isMultiplexMethod · 0.95

Tested by

no test coverage detected