diff options
author | 2011-08-28 14:43:30 -0400 | |
---|---|---|
committer | 2011-08-28 14:43:30 -0400 | |
commit | eb1f7abebc8b0d88be660550258d5fe1e8610621 (patch) | |
tree | 47c6e2837e09f039257404e5134bced3b1a5ea7a /src | |
parent | 15ae1d4983d29b4268c3bcb25e291fe7bf1c33fc (diff) |
Warn about concurrency issues with message-passing
Diffstat (limited to 'src')
-rw-r--r-- | src/c/urweb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c index 641c6c83..5dc2ce5b 100644 --- a/src/c/urweb.c +++ b/src/c/urweb.c @@ -220,7 +220,6 @@ static void release_client(client *c) { pthread_mutex_lock(&c->lock); --c->refcount; pthread_mutex_unlock(&c->lock); - } static const char begin_msgs[] = "Content-type: text/plain\r\n\r\n"; @@ -3185,7 +3184,8 @@ void uw_commit(uw_context ctx) { delta *d = &ctx->deltas[i]; client *c = find_client(d->client); - assert (c != NULL && c->mode == USED); + assert (c != NULL); + assert(c->mode == USED); client_send(c, &d->msgs, ctx->script.start, uw_buffer_used(&ctx->script)); } |