mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 23:04:07 +00:00
[rs] Merge #635
635: Staging belt: do not panic by unwrapping send result in recall (fixes #634) r=kvark a=myfreeweb Co-authored-by: Greg V <greg@unrelenting.technology>
This commit is contained in:
commit
e47fe431c0
@ -140,7 +140,10 @@ impl StagingBelt {
|
||||
.buffer
|
||||
.slice(..)
|
||||
.map_async(MapMode::Write)
|
||||
.inspect(move |_| sender.send(chunk).unwrap())
|
||||
.inspect(move |_| {
|
||||
// The only possible error is the other side disconnecting, which is fine
|
||||
let _ = sender.send(chunk);
|
||||
})
|
||||
}))
|
||||
.map(|_| ())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user