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
1 changed files with 1 additions and 0 deletions

View File

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