Project

General

Profile

Revision 88ef5f8b

ID88ef5f8ba13a978f5106bcb50761be610d6f1609
Parent 970a5512
Child 66e51de3

Added by Patrick Plitzner over 2 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

Add picture from clipboard (Maximum size: 40 MB)