mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
Add a const for the TrackList CacheWindow query timeout.
This commit is contained in:
parent
10072762e1
commit
8ccb1b8fd4
@ -54,6 +54,7 @@ using namespace musik::core::library::query;
|
||||
using namespace musik::core::sdk;
|
||||
|
||||
static const size_t kDefaultCacheSize = 50;
|
||||
static const int64_t kCacheWindowTimeoutMs = 50LL;
|
||||
|
||||
TrackList::TrackList(ILibraryPtr library)
|
||||
: library(library)
|
||||
@ -298,7 +299,7 @@ void TrackList::CacheWindow(size_t from, size_t to, bool async) const {
|
||||
completionFinished = true;
|
||||
};
|
||||
|
||||
this->library->EnqueueAndWait(query, 75LL, completion);
|
||||
this->library->EnqueueAndWait(query, kCacheWindowTimeoutMs, completion);
|
||||
|
||||
auto status = query->GetStatus();
|
||||
if (status != IQuery::Idle && status != IQuery::Running) {
|
||||
|
Loading…
Reference in New Issue
Block a user