[MIRROR] Pulls apart the vestiges of components still hanging onto signals [MDB IGNORE] (#21738)

* Pulls apart the vestiges of components still hanging onto signals

* update modular

---------

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
Co-authored-by: Tom <8881105+tf-4@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-06-18 13:18:23 +00:00
committed by GitHub
co-authored by LemonInTheDark Tom
parent da5da42a18
commit 6dfe17306c
373 changed files with 986 additions and 986 deletions
+2 -2
View File
@@ -45,9 +45,9 @@
/// Adds a listener to receive inputs when the variable has a value that is set.
/datum/circuit_variable/proc/add_listener(obj/item/circuit_component/to_add)
listeners += to_add
RegisterSignal(to_add, COMSIG_PARENT_QDELETING, PROC_REF(on_listener_qdel))
RegisterSignal(to_add, COMSIG_QDELETING, PROC_REF(on_listener_qdel))
/// Removes a listener to receive inputs when the variable has a value that is set. Listener will usually clean themselves up
/datum/circuit_variable/proc/remove_listener(obj/item/circuit_component/to_remove)
UnregisterSignal(to_remove, COMSIG_PARENT_QDELETING)
UnregisterSignal(to_remove, COMSIG_QDELETING)
listeners -= to_remove