[DeckShare] Close public decks tabs when the client disconnects

TabSupervisor::stop() built tabsToDelete from the room and game tabs
only, so a public decks tab survived a disconnect, sitting with stale
contents and a refresh button that kept hitting the dead client. Its
values are now folded into the same cleanup.
This commit is contained in:
Lukas Brübach 2026-09-20 20:17:23 +02:00 committed by GitHub
parent e0f8fd0091
commit f485b974df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -631,6 +631,10 @@ void TabSupervisor::stop()
tabsToDelete << i.value();
}
for (auto i = publicDecksTabs.cbegin(), end = publicDecksTabs.cend(); i != end; ++i) {
tabsToDelete << i.value();
}
for (const auto tab : tabsToDelete) {
tab->close();
}