myWatchedProjectCount should be nonnegative

This commit is contained in:
Maxim.Mossienko
2014-03-03 02:18:54 +01:00
parent 3c66f513c4
commit f65c54659a
@@ -196,7 +196,7 @@ public class TranslatingCompilerFilesMonitor implements ApplicationComponent {
return;
}
FileUtil.createIfDoesntExist(CompilerPaths.getRebuildMarkerFile(project));
--myWatchedProjectsCount;
if (myWatchedProjectsCount > 0) --myWatchedProjectsCount;
if (ourDebugMode) {
System.out.println("After suspend for project:"+projectId + "," + myWatchedProjectsCount);
}