Timeout when fetching remote things
This commit is contained in:
parent
7afa3372f5
commit
987a918d90
@ -48,7 +48,7 @@ SongLoader::Result SongLoader::Load(const QUrl& url, int timeout_msec) {
|
|||||||
return LoadLocal();
|
return LoadLocal();
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Start timeout
|
timeout_timer_->start();
|
||||||
return LoadRemote();
|
return LoadRemote();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -303,5 +303,7 @@ void SongLoader::StopTypefind() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SongLoader::Timeout() {
|
void SongLoader::Timeout() {
|
||||||
Q_ASSERT(0); // TODO
|
state_ = Finished;
|
||||||
|
success_ = false;
|
||||||
|
StopTypefind();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user