mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-10-06 03:27:35 +02:00
Move null assignments after the proper checks
This commit is contained in:
parent
489c72418d
commit
266e9e47cc
@ -786,13 +786,13 @@ class ChannelInjector extends ByteToMessageDecoder implements Injector {
|
||||
|
||||
// Clear cache
|
||||
factory.invalidate(player);
|
||||
|
||||
// Clear player instances
|
||||
// Should help fix memory leaks
|
||||
this.player = null;
|
||||
this.updated = null;
|
||||
}
|
||||
}
|
||||
|
||||
// Clear player instances
|
||||
// Should help fix memory leaks
|
||||
this.player = null;
|
||||
this.updated = null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user