Skip to content

Commit

Permalink
[SHIBUI-899]
Browse files Browse the repository at this point in the history
move some code about
  • Loading branch information
jj committed Sep 25, 2018
1 parent 7fb13a9 commit 60869cf
Showing 1 changed file with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import org.apache.http.impl.client.HttpClients;
import org.apache.lucene.index.IndexWriter;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import org.joda.time.chrono.ISOChronology;
import org.opensaml.saml.metadata.resolver.filter.FilterException;
import org.opensaml.saml.metadata.resolver.filter.MetadataFilterChain;
Expand Down Expand Up @@ -99,17 +98,15 @@ public void refilter() {
// why the negative refresh is occurring.
@Override
public synchronized void refresh() throws ResolverException {
DateTime now = null;
String mdId = null;
// In case a destroy() thread beat this thread into the monitor.
if (isDestroyed()) {
return;
}

try {
// In case a destroy() thread beat this thread into the monitor.
if (isDestroyed()) {
return;
}

now = new DateTime(ISOChronology.getInstanceUTC());
mdId = getMetadataIdentifier();
DateTime now = new DateTime(ISOChronology.getInstanceUTC());
String mdId = getMetadataIdentifier();

final byte[] mdBytes = fetchMetadata();
if (mdBytes == null) {
Expand Down

0 comments on commit 60869cf

Please sign in to comment.