Fix closing databases

This commit is contained in:
Jonas Kvinge
2019-07-25 17:56:28 +02:00
parent 41484f8673
commit 81caec99b7
10 changed files with 82 additions and 63 deletions

View File

@@ -219,6 +219,8 @@ void GPodDevice::WriteDatabase(bool success) {
}
}
backend_->Close();
songs_to_add_.clear();
songs_to_remove_.clear();
db_busy_.unlock();