mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
prevent closing more than once
This commit is contained in:
parent
1fa14a99e9
commit
28bed56b5a
@ -60,6 +60,9 @@ export class Timeline {
|
|||||||
|
|
||||||
/** @public */
|
/** @public */
|
||||||
close() {
|
close() {
|
||||||
|
if (this._closeCallback) {
|
||||||
this._closeCallback();
|
this._closeCallback();
|
||||||
|
this._closeCallback = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user