diff src/c/urweb.c @ 1665:f9ffe8497742

Fix channel delivery to handle sending of messages for channels whose clients haven't connected yet
author Adam Chlipala <adam@chlipala.net>
date Sun, 08 Jan 2012 15:47:05 -0500
parents 4682b312e9d5
children a54d223c3a7f
line wrap: on
line diff
--- a/src/c/urweb.c	Sat Jan 07 16:49:19 2012 -0500
+++ b/src/c/urweb.c	Sun Jan 08 15:47:05 2012 -0500
@@ -333,11 +333,7 @@
     c->send(c->sock, msg->start, uw_buffer_used(msg));
     c->close(c->sock);
     c->sock = -1;
-  } else if ((script_len > 0
-              && (c->send(c->sock, "E\n", 2)
-                  || c->send(c->sock, script, script_len)
-                  || c->send(c->sock, "\n", 1)))
-             || uw_buffer_append(&c->msgs, msg->start, uw_buffer_used(msg)))
+  } else if (uw_buffer_append(&c->msgs, msg->start, uw_buffer_used(msg)))
     fprintf(stderr, "Client message buffer size exceeded");
 
   pthread_mutex_unlock(&c->lock);