]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40294: Fix _asyncio when module is loaded/unloaded multiple times (GH-19542)
authorJeffrey Quesnelle <jquesnelle@gmail.com>
Fri, 17 Apr 2020 02:09:45 +0000 (22:09 -0400)
committerGitHub <noreply@github.com>
Fri, 17 Apr 2020 02:09:45 +0000 (04:09 +0200)
Modules/_asynciomodule.c

index 96a99fe49ceb017fe609d0607be73a69c48df68d..a03a63119bab3d6fba58135f31970f16c24be403 100644 (file)
@@ -3271,6 +3271,8 @@ module_free(void *m)
     Py_CLEAR(context_kwname);
 
     module_free_freelists();
+
+    module_initialized = 0;
 }
 
 static int