feat(imex): Cancel BackupProvider when dropped (#4242)

This ensures that the BackupProvider will be stopped as soon as the
struct is dropped and the imex progress error event is emitted.  This
makes it easier to use and also makes sure that the ffi call
dc_backup_provider_unref() does not lead to dangling resources.
This commit is contained in:
Floris Bruynooghe
2023-03-29 14:51:08 +02:00
committed by GitHub
parent 5be558ea68
commit 943c8a1ab3
5 changed files with 39 additions and 5 deletions

View File

@@ -5,6 +5,7 @@
### Changes
- Update iroh, remove `default-net` from `[patch.crates-io]` section.
- transfer backup: Connect to mutliple provider addresses concurrently. This should speed up connection time significantly on the getter side. #4240
- Make sure BackupProvider is cancelled on drop (or dc_backup_provider_unref). The BackupProvider will now alaway finish with an IMEX event of 1000 or 0, previoulsy it would sometimes finishe with 1000 (success) when it really was 0 (failure). #4242
## [1.112.1] - 2023-03-27