diff src/c/urweb.c @ 681:6c9b8875f347

Switch back to starting listener on load
author Adam Chlipala <adamc@hcoop.net>
date Sat, 28 Mar 2009 11:15:42 -0400
parents 44f23712020d
children 5bbb542243e8
line wrap: on
line diff
--- a/src/c/urweb.c	Sat Mar 28 11:13:36 2009 -0400
+++ b/src/c/urweb.c	Sat Mar 28 11:15:42 2009 -0400
@@ -861,8 +861,8 @@
     int pass;
     client *c = uw_new_client(&pass);
 
-    char *r = uw_malloc(ctx, 41 + 3 * INTS_MAX + strlen(ctx->url_prefix) + strlen(onload));
-    sprintf(r, " onload='client_id=%d;client_pass=%d;url_prefix=\"%s\";timeout=%d;%s'",
+    char *r = uw_malloc(ctx, 52 + 3 * INTS_MAX + strlen(ctx->url_prefix) + strlen(onload));
+    sprintf(r, " onload='client_id=%d;client_pass=%d;url_prefix=\"%s\";timeout=%d;listener();%s'",
             (int)c->id,
             c->data.used.pass,
             ctx->url_prefix,