mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 12:50:04 -04:00
Fix crash due to assertion during image loading from http (#3750)
* Closes https://github.com/emilk/egui/issues/3747
This commit is contained in:
@@ -95,8 +95,7 @@ impl BytesLoader for EhttpLoader {
|
||||
}
|
||||
};
|
||||
log::trace!("finished loading {uri:?}");
|
||||
let prev = cache.lock().insert(uri, Poll::Ready(result));
|
||||
assert!(matches!(prev, Some(Poll::Pending)));
|
||||
cache.lock().insert(uri, Poll::Ready(result));
|
||||
ctx.request_repaint();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user