Merge pull request #3286 from Scrxtchy/python-remove-signal-callback
obs-scripting: Fix removing signal handlers in pythonmaster
commit
31f1aa36ab
|
@ -595,7 +595,7 @@ static PyObject *obs_python_signal_handler_disconnect(PyObject *self,
|
|||
const char *cb_signal =
|
||||
calldata_string(&cb->base.extra, "signal");
|
||||
|
||||
if (cb_signal && strcmp(signal, cb_signal) != 0 &&
|
||||
if (cb_signal && strcmp(signal, cb_signal) == 0 &&
|
||||
handler == cb_handler)
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue