clear context reference when clearing cache

This commit is contained in:
zab2
2018-07-04 16:13:36 +00:00
parent 40b30979cd
commit f9c3f82bb1

View File

@@ -447,8 +447,10 @@ class UDPPacket implements CDQEntry {
* @since 0.9.2
*/
public static void clearCache() {
if (CACHE)
if (CACHE) {
PacketFactory.context = null;
_packetCache.clear();
}
}
private synchronized void verifyNotReleased() {