mirror of
https://github.com/moparisthebest/MoparClassic
synced 2024-12-21 23:18:52 -05:00
parent
c8312b5298
commit
f896f2df65
@ -72,6 +72,11 @@ public class ConnectionFilter extends BlacklistFilter {
|
|||||||
final Integer val;
|
final Integer val;
|
||||||
synchronized (connections) {
|
synchronized (connections) {
|
||||||
val = connections.get(host);
|
val = connections.get(host);
|
||||||
|
|
||||||
|
// Prevents NPE caused by blocking connections
|
||||||
|
if (val == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (val == 1) {
|
if (val == 1) {
|
||||||
connections.remove(host);
|
connections.remove(host);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user