Skip to content

Commit

Permalink
fix : 310줄 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jsilver01 committed Oct 10, 2024
1 parent 1930549 commit f54637b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,12 @@ async function runSocketServer() {
return;
}

if (!socket.room) {
if (!socket.studyroomId) {
callback({ error: 'Not in a room' });
return;
}

const room = roomManager.getRoom(socket.room);
const room = roomManager.getRoom(socket.studyroomId);
const { transport, params } = await createWebRtcTransport(room.router);
socket.producerTransport = transport;
callback(params);
Expand Down

0 comments on commit f54637b

Please sign in to comment.