SOLR-2180: make sure core is closed even if closing request causes an exception

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1026044 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2010-10-21 16:00:07 +00:00
parent 2f2c4fe1a2
commit c723559a59
1 changed files with 5 additions and 2 deletions

View File

@ -230,10 +230,13 @@ public class EmbeddedSolrServer extends SolrServer
throw new SolrServerException( ex );
}
finally {
try {
if (req != null) req.close();
} finally {
core.close();
}
}
}
/**
* @param req