diff options
author | Jeffrey Quesnelle <jquesnelle@gmail.com> | 2020-04-16 22:09:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-17 04:09:45 +0200 |
commit | a75e730075cd25be1143e6183006f3b1d61bb80f (patch) | |
tree | 204b257362b1e943d6a1fce466bdb03bbe40aad6 | |
parent | a388bbd3f129364c39843f63e92f08bc53c71905 (diff) | |
download | cpython-git-a75e730075cd25be1143e6183006f3b1d61bb80f.tar.gz |
bpo-40294: Fix _asyncio when module is loaded/unloaded multiple times (GH-19542)
-rw-r--r-- | Modules/_asynciomodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_asynciomodule.c b/Modules/_asynciomodule.c index 96a99fe49c..a03a63119b 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 |