changeset 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 a12186d99e4f
children df8f18d50746
files src/c/urweb.c
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
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);