You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-12-01 04:43:29 +03:00
It's a heap, not a stack
This commit is contained in:
@@ -173,7 +173,7 @@ OlmDevice.prototype._getAccount = async function(func) {
|
|||||||
let result;
|
let result;
|
||||||
|
|
||||||
await this._cryptoStore.endToEndAccountTransaction((accountData, save) => {
|
await this._cryptoStore.endToEndAccountTransaction((accountData, save) => {
|
||||||
// Olm has a limited stack size so we must tightly control the number of
|
// Olm has a limited heap size so we must tightly control the number of
|
||||||
// Olm account objects in existence at any given time: once created, it
|
// Olm account objects in existence at any given time: once created, it
|
||||||
// must be destroyed again before we await.
|
// must be destroyed again before we await.
|
||||||
const account = new Olm.Account();
|
const account = new Olm.Account();
|
||||||
|
|||||||
Reference in New Issue
Block a user