diff options
author | 2012-01-08 15:47:05 -0500 | |
---|---|---|
committer | 2012-01-08 15:47:05 -0500 | |
commit | f68c7505131065f210a53bd9ba5a6dd2c8e60c08 (patch) | |
tree | f833820146fe6fe4563db4a91e2318b53eb6e69f | |
parent | 586e0db2fc97bae1b88afbdff44d28e852bb4282 (diff) |
Fix channel delivery to handle sending of messages for channels whose clients haven't connected yet
-rw-r--r-- | src/c/urweb.c | 6 |
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); |