iOS threading issue with openDatabase?
craig-at-rsg opened this issue · 7 comments
openDBs is an NSMutableDictionary, which isn't designed for thread safety...
I used a thread safe dictionary (https://gist.github.com/steipete/5928916) in my local build for openDBs, and that fixed the problem I was seeing. I tried to branch this plugin, but I haven't gotten that working yet..
Thanks @brodybits, no rush; my fork is working for me.
https://github.com/litehelpers/Cordova-sqlite-storage/compare/storage-master...craig-at-rsg:2.0.4.1?expand=1
Marking this as a bug, with possible data loss risk. Will integrate the proposed workaround / solution in the near future.
Proposed workaround solution and flag fix for #703 are now integrated with cordova-sqlite-ext, will be integrated with this version in the near future.
Proposed workaround solution is now integrated with this plugin version (cordova-sqlite-storage), will be merged into the other plugin versions in the near future. Thanks again for the contribution.