We _can_ have handle_throttle() called on defunct handles after all,
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 26 Aug 2006 10:58:13 +0000 (10:58 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 26 Aug 2006 10:58:13 +0000 (10:58 +0000)
so it should just do nothing rather than failing an assertion.

git-svn-id: svn://svn.tartarus.org/sgt/putty@6807 cda61777-01e9-0310-a592-d414129be87e

windows/winhandl.c

index a5b7c69..e45eb9b 100644 (file)
@@ -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: