Mercurial > hg > orthanc-webviewer
diff Plugin/Cache/CacheScheduler.cpp @ 20:fcbc8e77cf8f
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 20 Apr 2015 12:15:15 +0200 |
parents | ecefd45026bf |
children | a6492d20b2a8 |
line wrap: on
line diff
--- a/Plugin/Cache/CacheScheduler.cpp Thu Apr 09 16:41:49 2015 +0200 +++ b/Plugin/Cache/CacheScheduler.cpp Mon Apr 20 12:15:15 2015 +0200 @@ -130,9 +130,18 @@ } std::string content; - if (!that->factory_.Create(content, prefetch->GetValue())) + + try { - // The factory cannot generate this item + if (!that->factory_.Create(content, prefetch->GetValue())) + { + // The factory cannot generate this item + continue; + } + } + catch (...) + { + // Exception continue; }