mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-10-29 14:15:40 +00:00
fix possible crash
This commit is contained in:
1 parent
c4e96dd481
commit
efd21ce982
1 file changed
+1
@@ -1247,6 +1247,7 @@ error:
|
||||
if (plugin) {
|
||||
if (plugin->tstate)
|
||||
{
|
||||
Plugin_RemoveAllHooks((PyObject *)plugin);
|
||||
/* FIXME: Handle this? */
|
||||
if (plugin->tstate == PyInterpreterState_ThreadHead(plugin->tstate->interp))
|
||||
Py_EndInterpreter(plugin->tstate);
|
||||
|
||||
Reference in new issue
Block a user