holepunchto / hyperdrive

Hyperdrive is a secure, real time distributed file system
Apache License 2.0
1.86k stars 135 forks source link

Remove listeners on close #278

Closed andrewosh closed 4 years ago

andrewosh commented 4 years ago

The metadata/content feeds might not be closed when the drive is closed (they might be mounted elsewhere, or being passively replicated in the corestore). If we don't remove these listeners, the drive state will be leaked after close.