summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Quesnelle <jquesnelle@gmail.com>2020-04-17 02:09:45 (GMT)
committerGitHub <noreply@github.com>2020-04-17 02:09:45 (GMT)
commita75e730075cd25be1143e6183006f3b1d61bb80f (patch)
tree204b257362b1e943d6a1fce466bdb03bbe40aad6
parenta388bbd3f129364c39843f63e92f08bc53c71905 (diff)
downloadcpython-a75e730075cd25be1143e6183006f3b1d61bb80f.zip
cpython-a75e730075cd25be1143e6183006f3b1d61bb80f.tar.gz
cpython-a75e730075cd25be1143e6183006f3b1d61bb80f.tar.bz2
bpo-40294: Fix _asyncio when module is loaded/unloaded multiple times (GH-19542)
-rw-r--r--Modules/_asynciomodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_asynciomodule.c b/Modules/_asynciomodule.c
index 96a99fe..a03a631 100644
--- a/Modules/_asynciomodule.c
+++ b/Modules/_asynciomodule.c
@@ -3271,6 +3271,8 @@ module_free(void *m)
Py_CLEAR(context_kwname);
module_free_freelists();
+
+ module_initialized = 0;
}
static int