1
0
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:
Yukio Onozuka 2019-12-13 07:52:34 +09:00
parent a4c351fd4f
commit b22a4f94ab

View File

@ -72,6 +72,7 @@ function deploy() {
return when.promise(function(resolve, reject) { return when.promise(function(resolve, reject) {
events.on("runtime-event", function(event) { events.on("runtime-event", function(event) {
if (event.id === 'runtime-deploy') { if (event.id === 'runtime-deploy') {
events.removeListener("runtime-event", arguments.callee);
resolve(); resolve();
} }
}); });