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(); |