diff --git a/src/messages/Image.cpp b/src/messages/Image.cpp index e6dcfbc8b..01edc9526 100644 --- a/src/messages/Image.cpp +++ b/src/messages/Image.cpp @@ -310,6 +310,14 @@ void Image::load() return Success; }); + req.onError([that = this, weak = weakOf(this)](auto result) -> bool { + auto shared = weak.lock(); + if (!shared) return false; + + shared->empty_ = true; + + return true; + }); req.execute(); }