[Core] Disconnect one-shot signals before calling callbacks
This prevents infinite recursion with one-shot connections emitting themselves
This commit is contained in:
parent
fe01776f05
commit
db455e5bee
5 changed files with 76 additions and 41 deletions
|
|
@ -0,0 +1,12 @@
|
|||
# https://github.com/godotengine/godot/issues/89439
|
||||
extends Node
|
||||
|
||||
signal my_signal
|
||||
|
||||
func async_func():
|
||||
await my_signal
|
||||
my_signal.emit()
|
||||
|
||||
func test():
|
||||
async_func()
|
||||
my_signal.emit()
|
||||
Loading…
Add table
Add a link
Reference in a new issue