Skip to content

Commit 74aea5a

Browse files
authored
fix leak on entering config state twice (#1381)
1 parent ca5af63 commit 74aea5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/client/play.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module.exports = function (client, options) {
5353
client.write('configuration_acknowledged', {})
5454
}
5555
client.state = states.CONFIGURATION
56-
client.on('select_known_packs', () => {
56+
client.once('select_known_packs', () => {
5757
client.write('select_known_packs', { packs: [] })
5858
})
5959
// Server should send finish_configuration on its own right after sending the client a dimension codec

0 commit comments

Comments
 (0)