prevent closing more than once

This commit is contained in:
Bruno Windels 2020-05-04 22:21:56 +02:00
parent 1fa14a99e9
commit 28bed56b5a

View file

@ -60,6 +60,9 @@ export class Timeline {
/** @public */ /** @public */
close() { close() {
this._closeCallback(); if (this._closeCallback) {
this._closeCallback();
this._closeCallback = null;
}
} }
} }