Changeset 30 in code for trunk/downstream.go


Ignore:
Timestamp:
Feb 6, 2020, 9:29:24 PM (5 years ago)
Author:
contact
Message:

Send channel info to downstream on registration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/downstream.go

    r28 r30  
    198198        })
    199199
     200        c.srv.lock.Lock()
     201        for _, uc := range c.srv.upstreamConns {
     202                // TODO: fix races accessing upstream connection data
     203                if !uc.registered {
     204                        continue
     205                }
     206                for _, ch := range uc.channels {
     207                        if ch.complete {
     208                                forwardChannel(c, ch)
     209                        }
     210                }
     211        }
     212        c.srv.lock.Unlock()
     213
    200214        return nil
    201215}
Note: See TracChangeset for help on using the changeset viewer.