@@ -219,7 +219,7 @@ public class L2DatabaseFactory
try
{
con = _source.getConnection();
- if (Config.DEBUG)
+ if (Server.serverMode == Server.MODE_GAMESERVER)
ThreadPoolManager.getInstance().scheduleGeneral(new ConnectionCloser(con, new RuntimeException()), 40000);
}
catch (SQLException e)
@@ -992,7 +992,10 @@ public class Castle
if (clan != null)
_ownerId = clan.getClanId(); // Update owner id property
else
+ {
_ownerId = 0; // Remove owner
+ resetManor();
+ }
Connection con = null;