isomorphic-git / lightning-fs

A lean and fast 'fs' for the browser
MIT License
476 stars 47 forks source link

fix: a shot in the dark at fixing the "Mutex double-freed" error #39

Closed billiegoose closed 4 years ago

billiegoose commented 4 years ago

Somehow, "Mutex double-freed" has occurred ~200 times in production over the last 30 days.

So far the only possibility I see is maybe there is a way that PromisifiedFS can _deactivate twice, since _deactivationTimeout is written to in two places.

That said, _deactivate itself is written to handle concurrency: you could call it 100 times concurrently, and it should only ever call this._mutex.release() once. So I don't see how this can fix anything.

isomorphic-git-bot commented 4 years ago

:tada: This PR is included in version 3.4.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: