Commit e05ffb6
committed
async: Fix discarded channel input data
Channel input was inadvertently being discarded because of an incorrect
refcount comparison (wrong order of operations).
This would cause data to be discarded if async progress() runs before
the ChanIn has consumed data. In sunsetc this never seems to occur,
maybe due to specifics how the Futures are executed by
embassy_futures::select?
In work in progress SFTP's demo, incoming data seems to be
intermittently discarded.
Fixes: f06f7ce ("Move channel wakers into core sunset crate")1 parent e2774a9 commit e05ffb6
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| |||
0 commit comments