MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / cancel

Method cancel

Telegram/SourceFiles/data/data_document.cpp:1344–1352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1342}
1343
1344void DocumentData::cancel() {
1345 if (!loading()) {
1346 return;
1347 }
1348
1349 _flags |= Flag::DownloadCancelled;
1350 destroyLoader();
1351 _owner->documentLoadDone(this);
1352}
1353
1354bool DocumentData::cancelled() const {
1355 return (_flags & Flag::DownloadCancelled);

Callers 1

destroyLoaderMethod · 0.45

Calls 1

documentLoadDoneMethod · 0.80

Tested by

no test coverage detected