watchtower: always populate Tower in ClientSession

In this commit, we make sure to always populate the Tower member of a
ClientSession. This is done for consistency.
This commit is contained in:
Elle Mouton
2022-10-04 15:18:40 +02:00
parent e150bb83d1
commit c60ecaccbf
3 changed files with 28 additions and 18 deletions

View File

@@ -220,6 +220,7 @@ func (m *ClientDB) listClientSessions(
if tower != nil && *tower != session.TowerID {
continue
}
session.Tower = m.towers[session.TowerID]
sessions[session.ID] = &session
}