Archiviert
13
0

Cleanup proxy packet injector in Spigot too. FIXES 127

Dieser Commit ist enthalten in:
Kristian S. Stangeland 2013-09-13 09:35:53 +02:00
Ursprung 57ad8d8aaa
Commit bed74f6ab6
2 geänderte Dateien mit 11 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -1113,6 +1113,8 @@ public final class PacketFilterManager implements ProtocolManager, ListenerInvok
// Remove packet handlers // Remove packet handlers
if (packetInjector != null) if (packetInjector != null)
packetInjector.cleanupAll(); packetInjector.cleanupAll();
if (spigotInjector != null)
spigotInjector.cleanupAll();
// Remove server handler // Remove server handler
playerInjection.close(); playerInjection.close();

Datei anzeigen

@ -545,4 +545,13 @@ public class SpigotPacketInjector implements SpigotPacketListener {
else else
throw new PlayerLoggedOutException("Player " + player + " has logged out"); throw new PlayerLoggedOutException("Player " + player + " has logged out");
} }
/**
* Invoked when the server is cleaning up.
*/
public void cleanupAll() {
if (proxyPacketInjector != null) {
proxyPacketInjector.cleanupAll();
}
}
} }