Dropped UPnP service. Whoever needs it, can re-adapt from l2j.
This commit is contained in:
@@ -33,7 +33,6 @@ import java.util.logging.Logger;
|
||||
import com.l2jserver.Config;
|
||||
import com.l2jserver.L2DatabaseFactory;
|
||||
import com.l2jserver.Server;
|
||||
import com.l2jserver.UPnPService;
|
||||
import com.l2jserver.commons.mmocore.SelectorConfig;
|
||||
import com.l2jserver.commons.mmocore.SelectorThread;
|
||||
import com.l2jserver.gameserver.cache.HtmCache;
|
||||
@@ -463,9 +462,6 @@ public class GameServer
|
||||
|
||||
_log.log(Level.INFO, getClass().getSimpleName() + ": Maximum numbers of connected players: " + Config.MAXIMUM_ONLINE_USERS);
|
||||
_log.log(Level.INFO, getClass().getSimpleName() + ": Server loaded in " + ((System.currentTimeMillis() - serverLoadStart) / 1000) + " seconds.");
|
||||
|
||||
printSection("UPnP");
|
||||
UPnPService.getInstance();
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user