getbouncer / cardscan-ios

A library for scanning credit and debit cards
MIT License
207 stars 66 forks source link

Backgrounding logic patch #165

Closed jaimejiyepark closed 4 years ago

jaimejiyepark commented 4 years ago

isBackground is true only when the queues are suspended. Use isBackground flag as a proxy areQueuesSuspended flag to avoid crash.

Note: I know I shouldn't put the queues in the mutexQueue but I felt like I should since its conditional upon the state of the background flag

jaimejiyepark commented 4 years ago

does testing count as that code to reproduce the bug and crazy backgrounding the app?