changeset 80:3ab2b0980fba

*** empty log message ***
author gongo
date Thu, 09 Nov 2006 08:34:16 +0000
parents 376bac6b05f1
children 8016a4ad065b
files linda.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/linda.c	Thu Nov 09 08:28:48 2006 +0000
+++ b/linda.c	Thu Nov 09 08:34:16 2006 +0000
@@ -78,7 +78,11 @@
     if (data) len += sizeof(FMATRIX);
 
     //reply = psx_reply(linda_seq[dest])
-    if (linda_seq[dest] == 0 || (reply = psx_reply(linda_seq[dest]))) {	
+    if (linda_seq[dest] == 0) {
+	pkt = make_packet(mode, car, course, data);
+	psx_out(dest, pkt, len);
+	free(pkt);
+    } else if (reply = psx_reply(linda_seq[dest])) {	
 	pkt = make_packet(mode, car, course, data);
 	psx_out(dest, pkt, len);
 	free(pkt);