Careful not to load all projects in an autosave cycle.
git-svn-id: http://google-refine.googlecode.com/svn/trunk@1037 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
3c09b06393
commit
1342ceacea
@ -195,7 +195,7 @@ public abstract class ProjectManager {
|
|||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
for (long id : _projectsMetadata.keySet()) {
|
for (long id : _projectsMetadata.keySet()) {
|
||||||
ProjectMetadata metadata = getProjectMetadata(id);
|
ProjectMetadata metadata = getProjectMetadata(id);
|
||||||
Project project = getProject(id);
|
Project project = _projects.get(id); // don't call getProject() as that will load the project.
|
||||||
|
|
||||||
if (project != null) {
|
if (project != null) {
|
||||||
boolean hasUnsavedChanges =
|
boolean hasUnsavedChanges =
|
||||||
|
Loading…
Reference in New Issue
Block a user