summaryrefslogtreecommitdiff
path: root/src/c
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2012-01-08 15:47:05 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2012-01-08 15:47:05 -0500
commit70eb9a740815d7eeb64092d8ae53b189c73420e5 (patch)
treef833820146fe6fe4563db4a91e2318b53eb6e69f /src/c
parentbc034c24a246d6abb6d5e172b26fcabbb447ab93 (diff)
Fix channel delivery to handle sending of messages for channels whose clients haven't connected yet
Diffstat (limited to 'src/c')
-rw-r--r--src/c/urweb.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c
index c71baee1..1a185b51 100644
--- a/src/c/urweb.c
+++ b/src/c/urweb.c
@@ -333,11 +333,7 @@ static void client_send(client *c, uw_buffer *msg, const char *script, int scrip
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);