commit | 6b0ca0aeab04d7b7b54086248ca9d5e70f770f2f | [log] [tgz] |
---|---|---|
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | Thu Apr 16 19:29:50 2020 -0700 |
committer | GitHub <noreply@github.com> | Thu Apr 16 19:29:50 2020 -0700 |
tree | dfa884b4b0d223e48bf648529962796ce9113828 | |
parent | 08b640f5727d76dbda1233c182b43a670849a0fa [diff] [blame] |
bpo-40294: Fix _asyncio when module is loaded/unloaded multiple times (GH-19542) (cherry picked from commit a75e730075cd25be1143e6183006f3b1d61bb80f) Co-authored-by: Jeffrey Quesnelle <jquesnelle@gmail.com>
diff --git a/Modules/_asynciomodule.c b/Modules/_asynciomodule.c index f4efa21..5ba2bc4 100644 --- a/Modules/_asynciomodule.c +++ b/Modules/_asynciomodule.c
@@ -3261,6 +3261,8 @@ Py_CLEAR(context_kwname); module_free_freelists(); + + module_initialized = 0; } static int