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.3 by tdb, Wed Nov 15 00:39:07 2000 UTC vs.
Revision 1.4 by tdb, Wed Nov 15 00:54:27 2000 UTC

# Line 58 | Line 58 | class HostInit extends Thread {
58                  
59                  // get lastmodified
60                  inBound = _socketIn.readLine();
61 <                while(!inBound.equals("LASTMODIFIED")) {
61 >                if(!inBound.equals("LASTMODIFIED")) {
62 >                        // protocol error
63                      _socketOut.println("ERROR");
64                      _socketOut.flush();
65 <                    inBound = _socketIn.readLine();
65 >                    throw new IOException("Protocol Error");
66                  }
67 <                _socketOut.println(myConfig.getLastModified());
68 <                _socketOut.flush();
67 >                else {
68 >                        // send info
69 >                        _socketOut.println(myConfig.getLastModified());
70 >                        _socketOut.flush();
71 >                }
72                  
73                  // get properties
74                  inBound = _socketIn.readLine();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines