Skip to content

Commit a837e8e

Browse files
committed
Close bookmarks db connection before trying to delete the file
1 parent 92ef2c7 commit a837e8e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Plugins/Flow.Launcher.Plugin.BrowserBookmark/ChromiumBookmarkLoader.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ ORDER BY b.width DESC
195195

196196
// https://github.com/dotnet/efcore/issues/26580
197197
SqliteConnection.ClearPool(connection);
198+
connection.Close();
198199
}
199200
catch (Exception ex)
200201
{

Plugins/Flow.Launcher.Plugin.BrowserBookmark/FirefoxBookmarkLoader.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ protected List<Bookmark> GetBookmarksFromPath(string placesPath)
8585

8686
// https://github.com/dotnet/efcore/issues/26580
8787
SqliteConnection.ClearPool(dbConnection);
88+
dbConnection.Close();
8889

8990
// Delete temporary file
9091
try
@@ -171,6 +172,7 @@ ORDER BY i.width DESC -- Select largest icon available
171172

172173
// https://github.com/dotnet/efcore/issues/26580
173174
SqliteConnection.ClearPool(connection);
175+
connection.Close();
174176

175177
// Delete temporary file
176178
try

0 commit comments

Comments
 (0)