mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-29 15:32:06 +01:00
Fix for removing packet listeners.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1870 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
68d489ef79
commit
bd4d3114d4
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ class PacketReader {
|
||||||
synchronized (listeners) {
|
synchronized (listeners) {
|
||||||
for (int i=0; i<listeners.size(); i++) {
|
for (int i=0; i<listeners.size(); i++) {
|
||||||
ListenerWrapper wrapper = (ListenerWrapper)listeners.get(i);
|
ListenerWrapper wrapper = (ListenerWrapper)listeners.get(i);
|
||||||
if (wrapper.packetListener.equals(packetListener)) {
|
if (wrapper != null && wrapper.packetListener.equals(packetListener)) {
|
||||||
listeners.set(i, null);
|
listeners.set(i, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue