--- projects/cms/source/conient/uk/org/iscream/cms/conient/DataReader.java 2001/01/24 03:21:25 1.8 +++ projects/cms/source/conient/uk/org/iscream/cms/conient/DataReader.java 2001/01/24 13:56:48 1.9 @@ -10,8 +10,8 @@ import uk.ac.ukc.iscream.util.*; * it then converts it to an XMLPacket and adds * it to its Queue for anything that wants it. * - * @author $Author: ajm $ - * @version $Id: DataReader.java,v 1.8 2001/01/24 03:21:25 ajm Exp $ + * @author $Author: tdb $ + * @version $Id: DataReader.java,v 1.9 2001/01/24 13:56:48 tdb Exp $ */ public class DataReader extends Thread { @@ -20,7 +20,7 @@ public class DataReader extends Thread { /** * The current CVS revision of this class */ - public final String REVISION = "$Revision: 1.8 $"; + public final String REVISION = "$Revision: 1.9 $"; //---STATIC METHODS--- @@ -55,6 +55,9 @@ public class DataReader extends Thread { // continue until we are told to stop while (_running) { line = _inBound.readLine(); + if (line == null) { + throw new IOException("unexpected loss of connection to server"); + } _dataQueue.add(line); }