Changeset 278 in code for trunk/downstream.go


Ignore:
Timestamp:
Apr 29, 2020, 5:45:37 PM (5 years ago)
Author:
contact
Message:

Add upstreamConn.caps

Instead of adding one field per capability, let's just have a map, just
like downstreamConn.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/downstream.go

    r276 r278  
    599599        awayNotifySupported := true
    600600        dc.forEachUpstream(func(uc *upstreamConn) {
    601                 awayNotifySupported = awayNotifySupported && uc.awayNotifySupported
     601                awayNotifySupported = awayNotifySupported && uc.caps["away-notify"]
    602602        })
    603603
Note: See TracChangeset for help on using the changeset viewer.