mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +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
|
.buffer
|
||||||
.slice(..)
|
.slice(..)
|
||||||
.map_async(MapMode::Write)
|
.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(|_| ())
|
.map(|_| ())
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user