mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #2408 from onozuka/remove-runtime-deploy-event
UI-test: fix memory leak. runtime-deploy event in deploy()
This commit is contained in:
commit
e2c3b35391
@ -69,6 +69,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();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user