fix: 防止 unlock 报错影响主流程

pull/22/head
Parker 3 years ago
parent 3fc63f4855
commit 93cdadcf8c

@ -144,7 +144,9 @@ public final class SecurityCache {
}catch (Exception e){ }catch (Exception e){
log.error(e.getMessage(), e); log.error(e.getMessage(), e);
}finally { }finally {
lock.unlock(); try {
lock.unlock();
}catch (Exception ignored){}
} }
return cache; return cache;
} }
@ -206,7 +208,9 @@ public final class SecurityCache {
}catch (Exception e){ }catch (Exception e){
log.error(e.getMessage(), e); log.error(e.getMessage(), e);
}finally { }finally {
lock.unlock(); try {
lock.unlock();
}catch (Exception ignored){}
} }
return cache; return cache;
} }
@ -354,7 +358,9 @@ public final class SecurityCache {
}catch (Exception e){ }catch (Exception e){
log.error(e.getMessage(), e); log.error(e.getMessage(), e);
}finally { }finally {
lock.unlock(); try {
lock.unlock();
}catch (Exception ignored){}
} }
return cache; return cache;
} }
@ -421,7 +427,9 @@ public final class SecurityCache {
}catch (Exception e){ }catch (Exception e){
log.error(e.getMessage(), e); log.error(e.getMessage(), e);
}finally { }finally {
lock.unlock(); try {
lock.unlock();
}catch (Exception ignored){}
} }
return cache; return cache;
} }
@ -488,7 +496,9 @@ public final class SecurityCache {
}catch (Exception e){ }catch (Exception e){
log.error(e.getMessage(), e); log.error(e.getMessage(), e);
}finally { }finally {
lock.unlock(); try {
lock.unlock();
}catch (Exception ignored){}
} }
return cache; return cache;
} }

Loading…
Cancel
Save