wtclient: filter out inactive sessions upon adding existing/new tower
This commit is contained in:
parent
75c2ebd794
commit
ec5c941512
@ -1061,7 +1061,7 @@ func (c *TowerClient) handleNewTower(msg *newTowerMsg) error {
|
||||
|
||||
// Include all of its corresponding sessions to our set of candidates.
|
||||
sessions, err := getClientSessions(
|
||||
c.cfg.DB, c.cfg.SecretKeyRing, &tower.ID, nil,
|
||||
c.cfg.DB, c.cfg.SecretKeyRing, &tower.ID, activeSessionFilter,
|
||||
)
|
||||
if err != nil {
|
||||
return fmt.Errorf("unable to determine sessions for tower %x: "+
|
||||
|
Loading…
Reference in New Issue
Block a user