mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
fix media db conflict aborting immediately instead of after 5s
https://forums.ankiweb.net/t/error-when-adding-audio-file/495/2
This commit is contained in:
parent
7cd02eea8f
commit
f8ca1d122d
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ impl MediaDatabaseContext<'_> {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn begin(&mut self) -> Result<()> {
|
fn begin(&mut self) -> Result<()> {
|
||||||
self.db.execute_batch("begin").map_err(Into::into)
|
self.db.execute_batch("begin immediate").map_err(Into::into)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn commit(&mut self) -> Result<()> {
|
fn commit(&mut self) -> Result<()> {
|
||||||
|
|
Loading…
Reference in a new issue