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

Crash on macOS #37

Open
appfrilans opened this issue May 8, 2023 · 0 comments
Open

Crash on macOS #37

appfrilans opened this issue May 8, 2023 · 0 comments
Assignees

Comments

@appfrilans
Copy link

Hi,

I get a crash on macOS on the following line in AuthorizationPerformer.swift:

if await applicationStateMonitor.hasResignedActive {

changing it to the follow helps:

if let applicationStateMonitor, await applicationStateMonitor.hasResignedActive {

It seems as de delegate is called before

applicationStateMonitor = await ApplicationStateMonitor()

is completed in the start function.

Not sure why and not sure if my workaround is the best or have other side effects, but seems to work for me.

@gre4ixin gre4ixin self-assigned this May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants