75 |
|
|
76 |
|
// look in the hostMap to see if anyone wants this data |
77 |
|
if(_hostMap.containsKey(host)) { |
78 |
< |
LinkedList list = (LinkedList) _hostMap.get(host); |
78 |
> |
List list = (List) _hostMap.get(host); |
79 |
|
Iterator i = list.iterator(); |
80 |
|
// push the data to the listening Handler's queue |
81 |
|
while(i.hasNext()) { |
127 |
|
// see if we already have a list in the map for this host |
128 |
|
if(_hostMap.containsKey(host)) { |
129 |
|
// we do, so add to it |
130 |
< |
LinkedList list = (LinkedList) _hostMap.get(host); |
130 |
> |
List list = (List) _hostMap.get(host); |
131 |
|
list.add(dhQueue); |
132 |
|
} |
133 |
|
else { |
165 |
|
// this should in reality always be true, but best check |
166 |
|
if(_hostMap.containsKey(host)) { |
167 |
|
// get the list and remove the host in question |
168 |
< |
LinkedList list = (LinkedList) _hostMap.get(host); |
168 |
> |
List list = (List) _hostMap.get(host); |
169 |
|
list.remove(dhQueue); |
170 |
|
// if the list is now empty, we might as well remove it |
171 |
|
if(list.size()==0) { |