diff options
Diffstat (limited to 'EssentialsProtect/src/com/earth2me/essentials/protect')
-rw-r--r-- | EssentialsProtect/src/com/earth2me/essentials/protect/data/ProtectedBlockJDBC.java | 35 |
1 files changed, 28 insertions, 7 deletions
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/data/ProtectedBlockJDBC.java b/EssentialsProtect/src/com/earth2me/essentials/protect/data/ProtectedBlockJDBC.java index e24a71b80..afbcedb72 100644 --- a/EssentialsProtect/src/com/earth2me/essentials/protect/data/ProtectedBlockJDBC.java +++ b/EssentialsProtect/src/com/earth2me/essentials/protect/data/ProtectedBlockJDBC.java @@ -76,7 +76,10 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock { try { - ps.close(); + if (!ps.isClosed()) + { + ps.close(); + } } catch (SQLException ex) { @@ -117,7 +120,10 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock { try { - ps.close(); + if (!ps.isClosed()) + { + ps.close(); + } } catch (SQLException ex) { @@ -195,7 +201,10 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock { try { - ps.close(); + if (!ps.isClosed()) + { + ps.close(); + } } catch (SQLException ex) { @@ -241,7 +250,10 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock { try { - ps.close(); + if (!ps.isClosed()) + { + ps.close(); + } } catch (SQLException ex) { @@ -296,7 +308,10 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock { try { - ps.close(); + if (!ps.isClosed()) + { + ps.close(); + } } catch (SQLException ex) { @@ -356,7 +371,10 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock { try { - ps.close(); + if (!ps.isClosed()) + { + ps.close(); + } } catch (SQLException ex) { @@ -398,7 +416,10 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock { try { - ps.close(); + if (!ps.isClosed()) + { + ps.close(); + } } catch (SQLException ex) { |