ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/clientinterface/PacketSorter.java
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/clientinterface/PacketSorter.java (file contents):
Revision 1.8 by tdb, Wed Feb 28 10:26:47 2001 UTC vs.
Revision 1.9 by tdb, Thu Mar 1 02:14:37 2001 UTC

# Line 75 | Line 75 | class PacketSorter extends Thread {
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()) {
# Line 127 | Line 127 | class PacketSorter extends Thread {
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 {
# Line 165 | Line 165 | class PacketSorter extends Thread {
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) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines