fix: necessary guard in case 'run' hasn't been executed yet
This commit is contained in:
committed by
Julian Murgia
parent
c9c7cd2dfa
commit
85947794b9
@@ -54,4 +54,7 @@ func run(command_params: Array) -> int:
|
|||||||
|
|
||||||
# Function called when the command is interrupted.
|
# Function called when the command is interrupted.
|
||||||
func interrupt():
|
func interrupt():
|
||||||
|
if timer == null:
|
||||||
|
return
|
||||||
|
|
||||||
timer.emit_signal("timeout")
|
timer.emit_signal("timeout")
|
||||||
|
|||||||
Reference in New Issue
Block a user