close transation if there's one open im handlefolder
This commit is contained in:
@@ -244,6 +244,13 @@ func decoded(in string) string {
|
|||||||
// ## begin handlers
|
// ## begin handlers
|
||||||
|
|
||||||
func (s *Scanner) handleFolder(it *item) error {
|
func (s *Scanner) handleFolder(it *item) error {
|
||||||
|
if s.trTxOpen {
|
||||||
|
// a transaction still being open when we handle a folder can
|
||||||
|
// happen if there is a folder that contains /both/ tracks and
|
||||||
|
// sub folders
|
||||||
|
s.trTx.Commit()
|
||||||
|
s.trTxOpen = false
|
||||||
|
}
|
||||||
folder := &model.Album{}
|
folder := &model.Album{}
|
||||||
defer func() {
|
defer func() {
|
||||||
// folder's id will come from early return
|
// folder's id will come from early return
|
||||||
|
|||||||
Reference in New Issue
Block a user