diff options
author | Adam Chlipala <adam@chlipala.net> | 2011-08-28 14:43:30 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2011-08-28 14:43:30 -0400 |
commit | d91328bc0c51c399b2a6926ba04cead7bccc67da (patch) | |
tree | 47c6e2837e09f039257404e5134bced3b1a5ea7a /src | |
parent | 76a36bc094b4939ed4d689c59c692154289f1ca5 (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)); } |