diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-01-15 16:59:21 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-01-15 16:59:21 -0800 |
commit | 9d13c639d13a53ac6fef622cb3c828d6fe9aa9ba (patch) | |
tree | 139f6b0bc719057ce9675d06974de4b58006d908 | |
parent | 4328e6fd0d973c0a0bc2800f4c67fdbfcae342c9 (diff) | |
download | qtlocation-mapboxgl-9d13c639d13a53ac6fef622cb3c828d6fe9aa9ba.tar.gz |
[core] Add missing returns in error case
Fixes #3585
-rw-r--r-- | src/mbgl/sprite/sprite_store.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mbgl/sprite/sprite_store.cpp b/src/mbgl/sprite/sprite_store.cpp index 8f99ea7626..a8d6c2fcd3 100644 --- a/src/mbgl/sprite/sprite_store.cpp +++ b/src/mbgl/sprite/sprite_store.cpp @@ -42,6 +42,7 @@ void SpriteStore::setURL(const std::string& url) { [this, jsonURL](Response res) { if (res.error) { observer->onSpriteError(std::make_exception_ptr(std::runtime_error(res.error->message))); + return; } if (res.notModified) { @@ -61,6 +62,7 @@ void SpriteStore::setURL(const std::string& url) { [this, spriteURL](Response res) { if (res.error) { observer->onSpriteError(std::make_exception_ptr(std::runtime_error(res.error->message))); + return; } if (res.notModified) { |