diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-10-05 21:37:07 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-10-05 21:37:07 -0400 |
commit | 0cdaea97dd035bcbf9d46b8a261b3eeaf4dea69c (patch) | |
tree | c340566dbccc77d2d3cb21b1290e01e5c1c0d9c4 /filecache.cpp | |
parent | cfcb0d4e662b960dcdd331a7c61dc2b9c614f930 (diff) | |
download | abaddon-portaudio-0cdaea97dd035bcbf9d46b8a261b3eeaf4dea69c.tar.gz abaddon-portaudio-0cdaea97dd035bcbf9d46b8a261b3eeaf4dea69c.zip |
slap a bunch of shit everywhere until the crashing stops
Diffstat (limited to 'filecache.cpp')
-rw-r--r-- | filecache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filecache.cpp b/filecache.cpp index 9e4b0b4..c715260 100644 --- a/filecache.cpp +++ b/filecache.cpp @@ -66,7 +66,7 @@ std::string Cache::GetPathIfCached(std::string url) { // this just seems really yucky void Cache::CleanupFutures() { for (auto it = m_futures.begin(); it != m_futures.end();) { - if (it->wait_for(std::chrono::seconds(0)) == std::future_status::ready) + if (it->valid() && it->wait_for(std::chrono::seconds(0)) == std::future_status::ready) it = m_futures.erase(it); else it++; |