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:
parent
1b4852c9b0
commit
a992c3ae2b
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user