Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Only allow one running instance of app #28

Merged
merged 3 commits into from
Aug 11, 2017
Merged

Only allow one running instance of app #28

merged 3 commits into from
Aug 11, 2017

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