changeset 5418:e429b50d10a3 HEAD

Don't crash when timeouts have leaked
author Timo Sirainen <tss@iki.fi>
date Mon, 26 Mar 2007 01:32:39 +0300
parents 8d837913b66b
children b50399a48c5a
files src/lib/ioloop.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/ioloop.c	Mon Mar 26 01:12:19 2007 +0300
+++ b/src/lib/ioloop.c	Mon Mar 26 01:32:39 2007 +0300
@@ -348,10 +348,8 @@
 	while (ioloop->timeouts != NULL) {
 		struct timeout *to = ioloop->timeouts;
 
-		if (!to->destroyed) {
+		if (!to->destroyed)
 			i_warning("Timeout leak: %p", (void *)to->callback);
-			timeout_remove(&to);
-		}
 		ioloop->timeouts = to->next;
 		i_free(to);
 	}