2
2
mirror of https://github.com/mastodon/mastodon-ios synced 2025-04-11 22:58:02 +02:00

Better clean up after failure or automated cancelation of post

Contributes to  #846 Toot lost in poor network conditions
This commit is contained in:
shannon 2024-12-13 15:38:05 -05:00
parent 1b4852c9b0
commit a992c3ae2b

View File

@ -84,8 +84,10 @@ extension PublisherService {
} catch is CancellationError {
self.statusPublishers.removeAll(where: { $0 === publisher })
self.currentPublishProgress = 0
self.statusPublishResult.send(.failure(CancellationError()))
} catch {
self.statusPublishers.removeAll(where: { $0 === publisher })
self.statusPublishResult.send(.failure(error))
self.currentPublishProgress = 0
}