Fix crash due to assertion during image loading from http (#3750)
* Closes https://github.com/emilk/egui/issues/3747
This commit is contained in:
parent
f4102c05e6
commit
239ade9a59
|
|
@ -95,8 +95,7 @@ impl BytesLoader for EhttpLoader {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
log::trace!("finished loading {uri:?}");
|
log::trace!("finished loading {uri:?}");
|
||||||
let prev = cache.lock().insert(uri, Poll::Ready(result));
|
cache.lock().insert(uri, Poll::Ready(result));
|
||||||
assert!(matches!(prev, Some(Poll::Pending)));
|
|
||||||
ctx.request_repaint();
|
ctx.request_repaint();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue