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:
David Huynh 2010-06-25 22:43:30 +00:00
parent 3c09b06393
commit 1342ceacea

View File

@ -195,7 +195,7 @@ public abstract class ProjectManager {
synchronized (this) {
for (long id : _projectsMetadata.keySet()) {
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) {
boolean hasUnsavedChanges =