1
0
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:
Nick O'Leary 2020-01-17 10:21:34 +00:00 committed by GitHub
commit e2c3b35391
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,6 +69,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();
}
});