From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 17 Apr 2020 02:29:50 +0000 (-0700) Subject: bpo-40294: Fix _asyncio when module is loaded/unloaded multiple times (GH-19542) X-Git-Tag: v3.8.3rc1~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6b0ca0aeab04d7b7b54086248ca9d5e70f770f2f;p=thirdparty%2FPython%2Fcpython.git bpo-40294: Fix _asyncio when module is loaded/unloaded multiple times (GH-19542) (cherry picked from commit a75e730075cd25be1143e6183006f3b1d61bb80f) Co-authored-by: Jeffrey Quesnelle --- diff --git a/Modules/_asynciomodule.c b/Modules/_asynciomodule.c index f4efa2120a9c..5ba2bc497570 100644 --- a/Modules/_asynciomodule.c +++ b/Modules/_asynciomodule.c @@ -3261,6 +3261,8 @@ module_free(void *m) Py_CLEAR(context_kwname); module_free_freelists(); + + module_initialized = 0; } static int