comparison 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
comparison
equal deleted inserted replaced
19:20af33af313a 20:fcbc8e77cf8f
128 continue; 128 continue;
129 } 129 }
130 } 130 }
131 131
132 std::string content; 132 std::string content;
133 if (!that->factory_.Create(content, prefetch->GetValue())) 133
134 try
134 { 135 {
135 // The factory cannot generate this item 136 if (!that->factory_.Create(content, prefetch->GetValue()))
137 {
138 // The factory cannot generate this item
139 continue;
140 }
141 }
142 catch (...)
143 {
144 // Exception
136 continue; 145 continue;
137 } 146 }
138 147
139 { 148 {
140 boost::mutex::scoped_lock lock(that->invalidatedMutex_); 149 boost::mutex::scoped_lock lock(that->invalidatedMutex_);