mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-04 09:11:33 +02:00
Sqlite: Unlock commit transaction on success, not fail
This commit is contained in:
parent
f2596fab9b
commit
d6b0343a81
@ -451,9 +451,10 @@ static int CommitTransaction( sql_t* p_sql )
|
||||
msg_Warn( p_sql, "sqlite3 error: %d: %s",
|
||||
sqlite3_errcode( p_sql->p_sys->db ),
|
||||
sqlite3_errmsg( p_sql->p_sys->db ) );
|
||||
vlc_mutex_unlock( &p_sql->p_sys->trans_lock );
|
||||
i_ret = VLC_EGENERIC;
|
||||
}
|
||||
else
|
||||
vlc_mutex_unlock( &p_sql->p_sys->trans_lock );
|
||||
vlc_mutex_unlock( &p_sql->p_sys->lock );
|
||||
return i_ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user