Project

General

Profile

« Previous | Next » 

Revision 88ef5f8b

Added by Patrick Plitzner over 5 years ago

ref #6321 Wait for previous search to finish

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/AbstractBulkEditorInput.java
158 158
	    if(searchJob!=null && searchJob.getState()!=Job.NONE){
159 159
	        searchJob.cancel();
160 160
	        searchJob = null;
161
	        /*
162
	         * wait for a little while for the job to finish
163
	         * to avoid asynchronously loaded results of the
164
	         * previous search being shown in the next search
165
	         * (not critical but explicitly waiting for the job to finish
166
	         * could run into an endless loop by mistake)
167
	         */
168
	        try {
169
                Thread.sleep(500);
170
            } catch (InterruptedException e) {
171
            }
161 172
	    }
162 173
	    model.clear();
163 174

  

Also available in: Unified diff