mirror of
https://github.com/clementine-player/Clementine
synced 2025-02-01 11:56:45 +01:00
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();
|
||||
}
|
||||
|
||||
// TODO: Start timeout
|
||||
timeout_timer_->start();
|
||||
return LoadRemote();
|
||||
}
|
||||
|
||||
@ -303,5 +303,7 @@ void SongLoader::StopTypefind() {
|
||||
}
|
||||
|
||||
void SongLoader::Timeout() {
|
||||
Q_ASSERT(0); // TODO
|
||||
state_ = Finished;
|
||||
success_ = false;
|
||||
StopTypefind();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user