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

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();
}
});