wtclient: filter out inactive sessions upon adding existing/new tower

This commit is contained in:
Wilmer Paulino 2020-05-11 15:26:36 -07:00
parent 75c2ebd794
commit ec5c941512
No known key found for this signature in database
GPG Key ID: 6DF57B9F9514972F

View File

@ -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: "+