]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40294: Fix _asyncio when module is loaded/unloaded multiple times (GH-19542)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 17 Apr 2020 02:29:50 +0000 (19:29 -0700)
committerGitHub <noreply@github.com>
Fri, 17 Apr 2020 02:29:50 +0000 (19:29 -0700)
(cherry picked from commit a75e730075cd25be1143e6183006f3b1d61bb80f)

Co-authored-by: Jeffrey Quesnelle <jquesnelle@gmail.com>
Modules/_asynciomodule.c

index f4efa2120a9c85c23444fa28d9b54d5564cc4c92..5ba2bc4975709895a0bdb5660be3dd808d486043 100644 (file)
@@ -3261,6 +3261,8 @@ module_free(void *m)
     Py_CLEAR(context_kwname);
 
     module_free_freelists();
+
+    module_initialized = 0;
 }
 
 static int