Skip to content

Commit

Permalink
wtclient: filter out inactive sessions upon adding existing/new tower
Browse files Browse the repository at this point in the history
  • Loading branch information
wpaulino committed May 14, 2020
1 parent 75c2ebd commit ec5c941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion watchtower/wtclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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: "+
Expand Down

0 comments on commit ec5c941

Please sign in to comment.