]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
We _can_ have handle_throttle() called on defunct handles after all,
authorSimon Tatham <anakin@pobox.com>
Sat, 26 Aug 2006 10:58:13 +0000 (10:58 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 26 Aug 2006 10:58:13 +0000 (10:58 +0000)
so it should just do nothing rather than failing an assertion.

[originally from svn r6807]

windows/winhandl.c

index a5b7c6967c01e7dcef1d2907610ff1bccd08a1df..e45eb9b5dec1d705f84a7e1f557f12baae596183 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: