2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 06:55:58 +00:00

Register streaming loaders in Storage::Downloader.

This commit is contained in:
John Preston
2019-04-12 14:50:41 +04:00
parent cca906d383
commit b2895a39ed
11 changed files with 158 additions and 98 deletions

View File

@@ -140,7 +140,8 @@ const QString &Uploader::File::filename() const {
return file ? file->filename : media.filename;
}
Uploader::Uploader() {
Uploader::Uploader(not_null<ApiWrap*> api)
: _api(api) {
nextTimer.setSingleShot(true);
connect(&nextTimer, SIGNAL(timeout()), this, SLOT(sendNext()));
stopSessionsTimer.setSingleShot(true);