mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Fix crash in session destruction.
Also use rpl::event_stream for downloaderTaskFinished.
This commit is contained in:
@@ -639,8 +639,7 @@ void UserpicButton::setupPeerViewers() {
|
||||
update();
|
||||
}, lifetime());
|
||||
|
||||
base::ObservableViewer(
|
||||
_peer->session().downloaderTaskFinished()
|
||||
_peer->session().downloaderTaskFinished(
|
||||
) | rpl::filter([=] {
|
||||
return _waiting;
|
||||
}) | rpl::start_with_next([=] {
|
||||
|
Reference in New Issue
Block a user