From 421a5ece2c964d58a2a0ffaa948b5f40c425ddb0 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 26 Aug 2006 10:58:13 +0000 Subject: [PATCH] We _can_ have handle_throttle() called on defunct handles after all, so it should just do nothing rather than failing an assertion. [originally from svn r6807] --- windows/winhandl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/windows/winhandl.c b/windows/winhandl.c index a5b7c696..e45eb9b5 100644 --- a/windows/winhandl.c +++ b/windows/winhandl.c @@ -122,7 +122,8 @@ static DWORD WINAPI handle_input_threadfunc(void *param) */ static void handle_throttle(struct handle_input *ctx, int backlog) { - assert(!ctx->defunct); + if (ctx->defunct) + return; /* * If there's a read operation already in progress, do nothing: