Changeset 938

Show
Ignore:
Timestamp:
11/14/10 16:35:26 (3 years ago)
Author:
stefan
Message:

fixed bug #135: JLE consumes 100% CPU (1 core) until the document you are working on is not saved

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/jlatexeditor/codehelper/BackgroundParser.java

    r918 r938  
    8989      } 
    9090      AbstractResource resource = editor.getResource(); 
    91       if (!(resource instanceof Doc.FileDoc)) continue; 
     91      if (!(resource instanceof Doc.FileDoc)) { 
     92        try { 
     93          sleep(1000); 
     94        } catch (InterruptedException e2) { 
     95          return; 
     96        } 
     97        continue; 
     98      } 
    9299 
    93100      File file = ((Doc.FileDoc) resource).getFile();