瀏覽代碼

obs-scripting: Fix removing signal handlers in python
Closes #3218

Scratch 5 年之前
父節點
當前提交
e4b81c2b1b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      deps/obs-scripting/obs-scripting-python.c

+ 1 - 1
deps/obs-scripting/obs-scripting-python.c

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