Merge pull request #5562 from jrusso1020/jrusso/fixes-part-of-5535

Close eventstreams upon completion
This commit is contained in:
Fredrik Adelöw
2021-05-03 18:47:24 +02:00
committed by GitHub
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-scaffolder': patch
---
Close eventSource upon completion of a scaffolder task
+1
View File
@@ -214,6 +214,7 @@ export class ScaffolderClient implements ScaffolderApi {
subscriber.error(ex);
}
}
eventSource.close();
subscriber.complete();
});
eventSource.addEventListener('error', event => {