Mercurial > minori
comparison src/gui/widgets/anime_info.cc @ 392:a72d6d7b3568
anime_info: don't need to wait on the thread, just disconnect
eventually, we can cancel any outgoing requests, but it's kind of
unnecessary
| author | Paper <paper@tflc.us> |
|---|---|
| date | Fri, 07 Nov 2025 07:10:32 -0500 |
| parents | 1e5d922fe82b |
| children |
comparison
equal
deleted
inserted
replaced
| 391:c3f717b7321b | 392:a72d6d7b3568 |
|---|---|
| 85 } | 85 } |
| 86 | 86 |
| 87 AnimeInfoWidget::~AnimeInfoWidget() | 87 AnimeInfoWidget::~AnimeInfoWidget() |
| 88 { | 88 { |
| 89 disconnect(&get_metadata_thread, nullptr, this, nullptr); | 89 disconnect(&get_metadata_thread, nullptr, this, nullptr); |
| 90 get_metadata_thread.wait(); | |
| 91 } | 90 } |
| 92 | 91 |
| 93 void AnimeInfoWidget::SetAnime(const Anime::Anime &anime) | 92 void AnimeInfoWidget::SetAnime(const Anime::Anime &anime) |
| 94 { | 93 { |
| 95 setUpdatesEnabled(false); | 94 setUpdatesEnabled(false); |
