MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / download_failed

Method download_failed

include/Helpers/FileDownloaderEmscripten.cpp:59–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void FileDownloader::download_failed(emscripten_fetch_t *fetch) {
60 DownloadData* downData = static_cast<DownloadData*>(fetch->userData);
61 downData->status = DownloadData::Status::FAILURE;
62 std::erase_if(currentDownloads, [fetch](DownloadHandler& d) {
63 return (DownloadData*)fetch->userData == d.data.get();
64 });
65 emscripten_fetch_close(fetch);
66}
67
68void FileDownloader::init() {
69}

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected