Skip to content

Commit

Permalink
fix: release awareness after use to avoid memory leak (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackycute authored Jan 12, 2025
1 parent 2c87aed commit 4cd56d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/protocol.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ export const mergeMessages = messages => {
)
)
}))
// release awareness after use to avoid memory leak
aw.destroy()
return result
}

Expand Down

0 comments on commit 4cd56d6

Please sign in to comment.