Skip to content

Commit e8f1339

Browse files
authored
Update protocol.js
release awareness after use to avoid memory leak
1 parent 2c87aed commit e8f1339

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/protocol.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ export const mergeMessages = messages => {
8383
)
8484
)
8585
}))
86+
// release awareness after use to avoid memory leak
87+
aw.destroy()
8688
return result
8789
}
8890

0 commit comments

Comments
 (0)