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

Comparing projects/cms/source/util/uk/org/iscream/cms/util/Smtp.java (file contents):
Revision 1.6 by tdb, Tue May 29 17:02:35 2001 UTC vs.
Revision 1.7 by tdb, Thu Feb 7 17:57:06 2002 UTC

# Line 116 | Line 116 | public class Smtp {
116      public void sendCommand(String cmd, int reply) throws IOException {
117          _socketOut.println(cmd);
118          String temp = _socketIn.readLine();
119 <        if (!temp.startsWith(new Integer(reply).toString())) {
119 >        if (temp == null) {
120 >            throw new IOException ("IO error reading from socket, connection to server died?");
121 >        }
122 >        if (!temp.startsWith(String.valueOf(reply))) {
123              throw new IOException ("Expected " + reply + ", got " + temp);
124          }
125      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines