Comment(s) from r2281
This commit is contained in:
parent
83948e4973
commit
9a8d01e2bd
|
@ -138,6 +138,7 @@ bool IcecastBackend::IsEmpty() {
|
|||
}
|
||||
|
||||
void IcecastBackend::ClearAndAddStations(const StationList& stations) {
|
||||
{
|
||||
QMutexLocker l(db_->Mutex());
|
||||
QSqlDatabase db = db_->Connect();
|
||||
ScopedTransaction t(&db);
|
||||
|
@ -167,6 +168,7 @@ void IcecastBackend::ClearAndAddStations(const StationList& stations) {
|
|||
}
|
||||
|
||||
t.Commit();
|
||||
}
|
||||
|
||||
emit DatabaseReset();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue