Skip to content

Fix AsyncDelegateProxy re-entrant cancellation crash#45

Merged
gre4ixin merged 1 commit intoAsyncSwift:mainfrom
thomas-hensel:thomas-hensel-patch-1
Apr 14, 2026
Merged

Fix AsyncDelegateProxy re-entrant cancellation crash#45
gre4ixin merged 1 commit intoAsyncSwift:mainfrom
thomas-hensel:thomas-hensel-patch-1

Conversation

@thomas-hensel
Copy link
Copy Markdown
Contributor

Patched a crash in Sources/AsyncLocationKit/AsyncDelegateProxy.swift:70 by snapshotting performers under performersQueue and invoking performers after leaving the queue. That removes the re-entrant DispatchQueue.sync path that was trapping when a performer called cancellable?.cancel(for: self) during event delivery.

Patched a crash in Sources/AsyncLocationKit/AsyncDelegateProxy.swift:70 by snapshotting performers under performersQueue and invoking performers after leaving the queue. That removes the re-entrant
  DispatchQueue.sync path that was trapping when a performer called cancellable?.cancel(for: self) during event delivery.
@gre4ixin gre4ixin merged commit 468eb49 into AsyncSwift:main Apr 14, 2026
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

Successfully merging this pull request may close these issues.

2 participants