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

Comparing projects/cms/source/server/uk/org/iscream/cms/server/filtermanager/HostInit.java (file contents):
Revision 1.36 by tdb, Wed Feb 26 17:16:30 2003 UTC vs.
Revision 1.37 by tdb, Thu Feb 27 17:04:24 2003 UTC

# Line 165 | Line 165 | class HostInit extends Thread {
165                      
166                      // try for {lastModified}
167                      String lastModified = getInBound();
168 +                    long lastmod;
169 +                    try {
170 +                        lastmod = Long.parseLong(lastModified);
171 +                    }
172 +                    catch(NumberFormatException e) {
173 +                        _socketOut.println("ERROR");
174 +                        throw new IOException("Last Modified invalid: " + e);
175 +                    }
176 +                    
177                      // check to see if a config update has happen
178 <                    boolean newConfig = _configManager.isModified(filelist, Long.parseLong(lastModified));
178 >                    boolean newConfig = _configManager.isModified(filelist, lastmod);
179                      if(newConfig) {
180                          // new config !
181                          _socketOut.println("EXPIRED");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines