Merge pull request #3286 from Scrxtchy/python-remove-signal-callback

obs-scripting: Fix removing signal handlers in python
master
Jim 2020-08-22 09:01:30 -07:00 committed by GitHub
commit 31f1aa36ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;