Fix del loop in modsuit devices (#90127)

## About The Pull Request
When the device of a modsuit module (eg foam mister) is the first thing
to be deleted, it causes a del loop runtime. Chain is:
- device qdel, hasn't yet run destroy() which would normally move the
device to nullspace
- signal runs on_device_deletion, destroys the module
- module destroy(), calls parent which deletes contents, including the
still-deleting device

Fixed by moving device to nullspace in on_device_deletion
## Changelog
N/A
This commit is contained in:
FlufflesTheDog
2025-03-20 12:02:15 +01:00
committed by GitHub
parent 4ff6ae5fe4
commit 3c8bd2b1ac
+1
View File
@@ -330,6 +330,7 @@
SIGNAL_HANDLER
if(source == device)
device.moveToNullspace()
device = null
qdel(src)