Fix memory leak

This commit is contained in:
Jon Staab
2025-02-17 08:34:56 -08:00
parent 4efa4a213e
commit 9638ae471e
+1 -1
View File
@@ -23,7 +23,7 @@ export class Relays extends Emitter {
cleanup = () => {
this.removeAllListeners()
this.connections.forEach(connection => {
connection.off("receive", this.onMessage)
connection.off(ConnectionEvent.Receive, this.onMessage)
})
}
}