Skip to content

Commit

Permalink
fix(analysis): Access right socket
Browse files Browse the repository at this point in the history
  • Loading branch information
HagerDakroury committed Jul 22, 2021
1 parent 7349c0e commit 9cb55fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions analysis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ io.on("connection", (socket: any) => {
console.log("socket " + socket.id + " is disconnecting");
var socketId = socket.id;
if (socketId in sockets) {
var meeting = socketId.meeting;
var student = socketId.username;
var meeting = sockets[socketId].meeting;
var student = sockets[socketId].username;
if (student && meeting) {
var emotion = emotions[meeting][student];
instructors[meeting][emotion]--;
Expand Down

0 comments on commit 9cb55fb

Please sign in to comment.