explicitly check for undefined

This commit is contained in:
Bruno Windels 2021-11-17 13:57:11 +01:00
parent 41a10d9697
commit 4030a4918d

View file

@ -210,7 +210,7 @@ export class LogItem implements ILogItem {
* @internal shouldn't typically be called by hand. allows to force finish if a promise is still running when closing the app
*/
finish(): void {
if (!this.end) {
if (this.end === undefined) {
if (this._children) {
for(const c of this._children) {
c.finish();