Minor cleanup

--HG--
branch : 1.x
This commit is contained in:
Renaud Paquay
2011-05-31 18:21:41 -07:00
parent f04e67d151
commit 5f04d394c4

View File

@@ -33,18 +33,18 @@ namespace Orchard.Caching {
public void QueueWorkItem() {
// Start a work item to collect tokens in our internal array
ThreadPool.QueueUserWorkItem((state) => {
try {
_task(token => _taskTokens.Add(token));
}
catch (Exception e) {
Logger.Error(e, "Error while monitoring extension files. Assuming extensions are not current.");
_taskException = e;
}
finally {
_isTaskFinished = true;
}
});
ThreadPool.QueueUserWorkItem(state => {
try {
_task(token => _taskTokens.Add(token));
}
catch (Exception e) {
Logger.Error(e, "Error while monitoring extension files. Assuming extensions are not current.");
_taskException = e;
}
finally {
_isTaskFinished = true;
}
});
}
public bool IsCurrent {