Skip to content

Commit a75e730

Browse files
authored
bpo-40294: Fix _asyncio when module is loaded/unloaded multiple times (GH-19542)
1 parent a388bbd commit a75e730

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
@@ -3271,6 +3271,8 @@ module_free(void *m)
32713271
Py_CLEAR(context_kwname);
32723272

32733273
module_free_freelists();
3274+
3275+
module_initialized = 0;
32743276
}
32753277

32763278
static int

0 commit comments

Comments
 (0)