From 830b1527767a138b9f70735838e24fb7fc126360 Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Tue, 4 Jun 2024 01:08:06 +0200 Subject: [PATCH] python: unload script interpreters before eval interpreter The workaround in the previous commit didn't work for one user, so try unloading the eval interpreter last to see if that helps. --- src/plugins/python/weechat-python.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/python/weechat-python.c b/src/plugins/python/weechat-python.c index 9e0384d37..2d907beb6 100644 --- a/src/plugins/python/weechat-python.c +++ b/src/plugins/python/weechat-python.c @@ -1625,12 +1625,12 @@ weechat_plugin_end (struct t_weechat_plugin *plugin) { /* unload all scripts */ python_quiet = 1; + plugin_script_end (plugin, &python_data); if (python_script_eval) { weechat_python_unload (python_script_eval); python_script_eval = NULL; } - plugin_script_end (plugin, &python_data); python_quiet = 0; /* free python interpreter */