Dropped UPnP service. Whoever needs it, can re-adapt from l2j.

This commit is contained in:
mobius
2015-01-27 02:37:13 +00:00
parent 12ca448eeb
commit f6ae3344f5
12 changed files with 3 additions and 184 deletions

View File

@ -23,7 +23,6 @@ import java.util.logging.Logger;
import com.l2jserver.Config;
import com.l2jserver.L2DatabaseFactory;
import com.l2jserver.UPnPService;
import com.l2jserver.gameserver.data.sql.impl.ClanTable;
import com.l2jserver.gameserver.data.sql.impl.OfflineTradersTable;
import com.l2jserver.gameserver.datatables.BotReportTable;
@ -189,16 +188,6 @@ public class Shutdown extends Thread
TimeCounter tc = new TimeCounter();
TimeCounter tc1 = new TimeCounter();
try
{
UPnPService.getInstance().removeAllPorts();
_log.info("UPnP Service: All ports mappings deleted (" + tc.getEstimatedTimeAndRestartCounter() + "ms).");
}
catch (Throwable t)
{
_log.log(Level.WARNING, "Error while removing UPnP port mappings: ", t);
}
try
{
if ((Config.OFFLINE_TRADE_ENABLE || Config.OFFLINE_CRAFT_ENABLE) && Config.RESTORE_OFFLINERS && !Config.STORE_OFFLINE_TRADE_IN_REALTIME)