setter for rectOfIntrest blocking
Closed this issue · 4 comments
Hello, I've found another issue with blocking the main thread.
The method -setScanRect
is setting the rectOfIntrest
on the main queue, where occasionally it blocks. This happens to me often, when I try to turn the scanner off and on again many times.
According to apple sample this operation should be done on a session queue, not main queue.
Ok, thanks for letting me know. I should have time to look at this over the weekend. Pull requests are also welcome.
I have a fix for this in bd8982b. Let me know if this fits your needs. I'm going to hold off on releasing this until next week so everyone has a chance to look over the changes. Thanks!
Works smooth like butter now! Okay to release for me.
This is now in 5.0.3. Thanks!