Revision 1638

tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/CQPSearchEngine.java (revision 1638)
326 326
	public boolean stop() {
327 327
		try {
328 328
			if (cqiClient instanceof MemCqiClient) {
329
				try  {
330
				} catch(Exception e) {}
331 329
				for (String name : ((MemCqiClient)cqiClient).listCorpora()) {
332 330
					((MemCqiClient)cqiClient).dropCorpus(name);
333 331
				}
......
337 335
			cqiServer.stop();
338 336

  
339 337
			CorpusManager.clean();
340
			if (cqiServer instanceof NetCqiServer)
338
			if (cqiServer instanceof NetCqiServer) {
341 339
				killSearchEngine();
340
			}
342 341

  
342
			cqiClient = null;
343
			cqiServer = null;
344
			System.gc();
345
			
343 346
			state = false;
344 347
		} catch (Exception e) {
345 348
			Log.severe("Error while closing CQP: "+e.getLocalizedMessage());

Also available in: Unified diff