mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
when call event. remove runtime event.
This commit is contained in:
parent
a4c351fd4f
commit
b22a4f94ab
@ -72,6 +72,7 @@ function deploy() {
|
||||
return when.promise(function(resolve, reject) {
|
||||
events.on("runtime-event", function(event) {
|
||||
if (event.id === 'runtime-deploy') {
|
||||
events.removeListener("runtime-event", arguments.callee);
|
||||
resolve();
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user