Skip to content

Commit 6b0ca0a

Browse files
bpo-40294: Fix _asyncio when module is loaded/unloaded multiple times (GH-19542)
(cherry picked from commit a75e730) Co-authored-by: Jeffrey Quesnelle <[email protected]>
1 parent 08b640f commit 6b0ca0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Modules/_asynciomodule.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3261,6 +3261,8 @@ module_free(void *m)
32613261
Py_CLEAR(context_kwname);
32623262

32633263
module_free_freelists();
3264+
3265+
module_initialized = 0;
32643266
}
32653267

32663268
static int

0 commit comments

Comments
 (0)