AsyncLocationKit icon indicating copy to clipboard operation
AsyncLocationKit copied to clipboard

Crash on macOS

Open appfrilans opened this issue 2 years ago • 0 comments

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.

appfrilans avatar May 08 '23 11:05 appfrilans