[Tinyos-commits] CVS: tinyos-1.x/tools/java/net/tinyos/message MoteIF.java, 1.15, 1.16

David Gay idgay at users.sourceforge.net
Thu Jul 28 08:31:13 PDT 2005


Update of /cvsroot/tinyos/tinyos-1.x/tools/java/net/tinyos/message
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14771

Modified Files:
	MoteIF.java 
Log Message:
bug fix: if source was started before MoteIF initialiser called, 
         source.awaitStartup() wasn't called because of a prior
	 exception when attempting to start source


Index: MoteIF.java
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/tools/java/net/tinyos/message/MoteIF.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** MoteIF.java	31 May 2004 10:30:24 -0000	1.15
--- MoteIF.java	28 Jul 2005 15:31:11 -0000	1.16
***************
*** 163,169 ****
  	try {
  	    source.start();
- 	    source.awaitStartup();
  	}
  	catch (IllegalThreadStateException e) { }
  	catch (IOException e) { 
  	    e.printStackTrace();
--- 163,171 ----
  	try {
  	    source.start();
  	}
  	catch (IllegalThreadStateException e) { }
+ 	try {
+ 	    source.awaitStartup();
+ 	}
  	catch (IOException e) { 
  	    e.printStackTrace();



More information about the Tinyos-commits mailing list