W3C home > Mailing lists > Public > www-lib@w3.org > October to December 1999

Patch to stop some event loop madness

From: Sam Couter <eddie@topic.com.au>
Date: Thu, 16 Dec 1999 10:38:08 +1100
To: www-lib@w3.org
Message-ID: <19991216103808.B1445@mailhost.topic.com.au>
Short patch, to avoid infinite event loop madness when HTTimer_next() calls
callbacks that call HTEventLoop_stopLoop().

If someone with CVS write access could check this in, I'd appreciate it.

diff -u -r2.41 HTEvtLst.c
--- HTEvtLst.c  1999/07/07 15:43:28     2.41
+++ HTEvtLst.c  1999/12/15 23:32:32
@@ -664,6 +664,8 @@
        wt = NULL;
        if ((status = HTTimer_next(&timeout)))
            break;
+       if (HTEndLoop)
+               break;
        if (timeout != 0) {
            waittime.tv_sec = timeout / MILLI_PER_SECOND;
            waittime.tv_usec = (timeout % MILLI_PER_SECOND) *


-- 
Sam Couter                                             sam@topic.com.au
Internet Engineer
tSA Consulting
Received on Wednesday, 15 December 1999 18:38:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:35 GMT