ReactiveLocation icon indicating copy to clipboard operation
ReactiveLocation copied to clipboard

Possible race condition in `observerCount`

Open olejnjak opened this issue 6 years ago • 1 comments

ReactiveLocation contains a possible race condition, locking in observerCount.didSet is not sufficient. Inside synchronised block other thread can mutate the observerCount property and the behaviour might become undefined. Each access to observerCount property should be synchronised.

https://github.com/AckeeCZ/ReactiveLocation/blob/27939a414c9ac2cdbdf35debd4bfd2c7d4e51196/ReactiveLocation/ReactiveLocation.swift#L34

olejnjak avatar Apr 30 '19 10:04 olejnjak

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jun 20 '20 00:06 github-actions[bot]