JVBarbosa

[fixed - Hellas] Castle.java - unclosed connection

Jun 28th, 2016
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.18 KB | None | 0 0
  1. ### Eclipse Workspace Patch 1.0
  2. #P L2JHellasC
  3. Index: java/com/l2jhellas/gameserver/model/entity/Castle.java
  4. ===================================================================
  5. --- java/com/l2jhellas/gameserver/model/entity/Castle.java  (revision 519)
  6. +++ java/com/l2jhellas/gameserver/model/entity/Castle.java  (working copy)
  7. @@ -454,7 +454,8 @@
  8.                     _showNpcCrest = true;
  9.                
  10.             }
  11. -
  12. +          
  13. +           rs.close();
  14.             statement.close();
  15.  
  16.             _taxRate = _taxPercent / 100.0;
  17. @@ -473,7 +474,8 @@
  18.                 L2Clan clan = ClanTable.getInstance().getClan(getOwnerId());// Try to find clan instance
  19.                 ThreadPoolManager.getInstance().scheduleGeneral(new CastleUpdater(clan, 1), 3600000);// Schedule owner tasks to start running
  20.             }
  21. -
  22. +          
  23. +           rs.close();
  24.             statement.close();
  25.         }
  26.         catch (Exception e)
  27. @@ -503,7 +505,8 @@
  28.                 _doors.add(door);
  29.                 DoorData.getInstance().putDoor(door);
  30.             }
  31. -
  32. +          
  33. +           rs.close();
  34.             statement.close();
  35.         }
  36.         catch (SQLException e)
  37. @@ -527,7 +530,8 @@
  38.             {
  39.                 upgradeDoor(rs.getInt("id"), rs.getInt("hp"), rs.getInt("pDef"), rs.getInt("mDef"));
  40.             }
  41. -
  42. +          
  43. +           rs.close();
  44.             statement.close();
  45.         }
  46.         catch (SQLException e)
Advertisement
Add Comment
Please, Sign In to add comment