mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Close bookmarks db connection before trying to delete the file
This commit is contained in:
parent
92ef2c76c7
commit
a837e8e197
2 changed files with 3 additions and 0 deletions
|
|
@ -195,6 +195,7 @@ public abstract class ChromiumBookmarkLoader : IBookmarkLoader
|
|||
|
||||
// https://github.com/dotnet/efcore/issues/26580
|
||||
SqliteConnection.ClearPool(connection);
|
||||
connection.Close();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -85,6 +85,7 @@ public abstract class FirefoxBookmarkLoaderBase : IBookmarkLoader
|
|||
|
||||
// https://github.com/dotnet/efcore/issues/26580
|
||||
SqliteConnection.ClearPool(dbConnection);
|
||||
dbConnection.Close();
|
||||
|
||||
// Delete temporary file
|
||||
try
|
||||
|
|
@ -171,6 +172,7 @@ public abstract class FirefoxBookmarkLoaderBase : IBookmarkLoader
|
|||
|
||||
// https://github.com/dotnet/efcore/issues/26580
|
||||
SqliteConnection.ClearPool(connection);
|
||||
connection.Close();
|
||||
|
||||
// Delete temporary file
|
||||
try
|
||||
|
|
|
|||
Loading…
Reference in a new issue