Project

General

Profile

Revision 39

Added by Greg Tress over 16 years ago

cleaned up colonet gui code

View differences:

Colonet.java
760 760
			String line;
761 761
			while (true) {
762 762
				try {
763
          if (csi == null) return;
764
          line = csi.getLine();
765
          if (line != null) {
766
            csi.msg("Incoming data: [" + line + "]");
767
            //TODO: parse incoming data here
768
          }
763
					if (csi == null) return;
764
					line = csi.getLine();
765
					if (line != null) {
766
						csi.msg("Incoming data: [" + line + "]");
767
						//TODO: parse incoming data here
768
					}
769 769
					Thread.sleep(DATALISTENER_DELAY);
770 770
				} catch (InterruptedException e) {
771 771
					return;
772
				} catch (IOException e) {
773
					csi.warn("IOException while reading incoming data.");
774
				}
772
				} 
775 773
			}
776 774
		}
777 775

  

Also available in: Unified diff