1
0
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:
David Sansome 2010-06-15 14:44:28 +00:00
parent 7afa3372f5
commit 987a918d90

View File

@ -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();
}