Daniel D’Aquino
650d4af504
Fix crash on iOS 17
...
This fixes an arithmetic overflow crash on iOS 17 caused by the fallback
lock.
In iOS 17, Swift Mutexes are not available, so we have a fallback class
for NdbUseLock that does not make use of them. This allows some thread
safety for iOS 17 users, but unfortunately not as much as iOS 18+ users.
This attempts to fix those remaining race conditions and subsequent
crashes by using `NSLock` in the fallback class, which is available on
iOS 17.
Closes: https://github.com/damus-io/damus/issues/3512
Changelog-Fixed: Fixed a crash on iOS 17 that would happen on startup
Signed-off-by: Daniel D’Aquino <daniel@daquino.me >
2026-01-12 11:41:01 -08:00
..
2025-08-11 16:40:01 -07:00
2024-07-14 21:26:03 -07:00
2026-01-02 20:49:13 -08:00
2025-12-29 11:01:23 -08:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2023-08-01 21:53:19 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:40:01 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2023-08-28 08:18:25 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2023-08-25 19:05:34 -07:00
2025-08-11 16:39:59 -07:00
2024-09-01 06:42:35 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2024-01-26 12:00:26 -08:00
2023-08-25 19:05:34 -07:00
2025-08-11 16:39:43 -07:00
2026-01-02 20:49:13 -08:00
2025-12-07 11:02:45 -08:00
2025-12-07 11:02:45 -08:00
2025-08-11 16:40:01 -07:00
2025-12-29 11:01:23 -08:00
2024-06-21 12:00:44 -07:00
2025-08-11 16:40:01 -07:00
2025-08-11 16:40:01 -07:00
2025-08-11 16:40:01 -07:00
2025-12-29 11:01:23 -08:00
2026-01-12 11:41:01 -08:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:40:01 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2023-07-25 15:34:05 -07:00
2023-07-25 15:34:05 -07:00
2023-07-25 15:34:05 -07:00
2023-07-25 15:34:05 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:40:01 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-12-07 11:02:45 -08:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00