KEMBAR78
Only allow one running instance of app by btoews · Pull Request #28 · github/SoftU2F · GitHub
Skip to content
This repository was archived by the owner on Dec 15, 2020. It is now read-only.

Conversation

@btoews
Copy link
Contributor

@btoews btoews commented Aug 1, 2017

There's some weird behavior when you try to run multiple instances of the app at the same time. You should wind up with two HID devices in the registry, but they somehow mess with each other and neither of them end up working. This is problematic because people try to launch the SoftU2F.app, even though the launchd agent is already running in the background.

This PR adds a check to the driver that returns an error when trying to get a new userclient if one is already attached.

@btoews btoews merged commit cb23f15 into master Aug 11, 2017
@btoews btoews deleted the exclusive-access branch August 11, 2017 22:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants