Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cards get detected multiple times #16

Open
Merovius opened this issue Jun 11, 2015 · 1 comment
Open

Cards get detected multiple times #16

Merovius opened this issue Jun 11, 2015 · 1 comment
Labels

Comments

@Merovius
Copy link
Contributor

Optimally, we wait until the card is removed, before we change the display back to default. Or something. This requires a bit of refactoring, but shouldn't be too hard.

@Merovius
Copy link
Contributor Author

Note to self: Problem is:
• Card gets detected by polling goroutine, send over channell
• Received by main-goroutine, passed to HandleCard, which blocks
• Meanwhile, polling goroutine continues, detects the card a second time, sends over channel
• Send only succeds, after HandleCard stops blocking
Thus the card gets detected not more than twice, unless swiped very unnaturally for more than a second. Fix is to change the blocking-behaviour.

@Merovius Merovius self-assigned this Jun 12, 2015
@Merovius Merovius removed their assignment Sep 14, 2015
@koebi koebi added the bug label May 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants