From 93cdadcf8cabe6e584e0d704ae0654133c718f67 Mon Sep 17 00:00:00 2001 From: Parker Date: Tue, 29 Nov 2022 16:40:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=98=B2=E6=AD=A2=20unlock=20=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E5=BD=B1=E5=93=8D=E4=B8=BB=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/opsli/core/cache/SecurityCache.java | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/opsli-base-support/opsli-core/src/main/java/org/opsli/core/cache/SecurityCache.java b/opsli-base-support/opsli-core/src/main/java/org/opsli/core/cache/SecurityCache.java index 98e574e5..49ca251d 100644 --- a/opsli-base-support/opsli-core/src/main/java/org/opsli/core/cache/SecurityCache.java +++ b/opsli-base-support/opsli-core/src/main/java/org/opsli/core/cache/SecurityCache.java @@ -144,7 +144,9 @@ public final class SecurityCache { }catch (Exception e){ log.error(e.getMessage(), e); }finally { - lock.unlock(); + try { + lock.unlock(); + }catch (Exception ignored){} } return cache; } @@ -206,7 +208,9 @@ public final class SecurityCache { }catch (Exception e){ log.error(e.getMessage(), e); }finally { - lock.unlock(); + try { + lock.unlock(); + }catch (Exception ignored){} } return cache; } @@ -354,7 +358,9 @@ public final class SecurityCache { }catch (Exception e){ log.error(e.getMessage(), e); }finally { - lock.unlock(); + try { + lock.unlock(); + }catch (Exception ignored){} } return cache; } @@ -421,7 +427,9 @@ public final class SecurityCache { }catch (Exception e){ log.error(e.getMessage(), e); }finally { - lock.unlock(); + try { + lock.unlock(); + }catch (Exception ignored){} } return cache; } @@ -488,7 +496,9 @@ public final class SecurityCache { }catch (Exception e){ log.error(e.getMessage(), e); }finally { - lock.unlock(); + try { + lock.unlock(); + }catch (Exception ignored){} } return cache; }