Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Stopped subscription check preventing writes to the database. #109
Original report from Matt Robinson at 10:15:59 on 2010-05-16
Now that issue #107 has been implemented (meaning that each thread correctly gets a different SQLiteConnection), this has highlighted an issue with the CheckSubscriptionsAsync method. The problem is that while looping through the current subscriptions, the data reader is kept open, meaning that the database is locked for writes until all of the subscriptions have been checked.
This is fine for users with a small number of subscriptions, but for large subscription lists this can mean that the database cannot be written to for periods of several minutes at a time, causing crashes in a number of different places.
Imported from Bug 249 in the NerdoftheHerd.com Bugzilla.