Skip to content

Commit

Permalink
fix incorrect object copy loop
Browse files Browse the repository at this point in the history
  • Loading branch information
raybellis committed Feb 26, 2019
1 parent 39b0c7e commit f8a26cb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/node/handler/PadMessageHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -1128,9 +1128,7 @@ async function handleClientReady(client, message)

// combine our old object with the new attributes from the hook
for (let msg of messages) {
for (let attr in msg) {
clientVars[attr] = newVars[attr];
}
Object.assign(clientVars, msg);
}

// Join the pad and start receiving updates
Expand Down

0 comments on commit f8a26cb

Please sign in to comment.