summaryrefslogtreecommitdiffstats
path: root/httpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/httpd.c b/httpd.c
index b8391fc..a80c44d 100644
--- a/httpd.c
+++ b/httpd.c
@@ -66,12 +66,10 @@ static char buf[BUF_SIZE];
void
httpInitSockets(rfbScreenInfoPtr rfbScreen)
{
- static Bool done = FALSE;
-
- if (done)
+ if (rfbScreen->httpInitDone)
return;
- done = TRUE;
+ rfbScreen->httpInitDone = TRUE;
if (!rfbScreen->httpDir)
return;