LAPI-675: Remove commented code

This commit is contained in:
Sergiu Toma 2023-01-16 17:39:15 +02:00
parent fb99fd57f8
commit 9382fd11fb

11
app.js
View File

@ -266,17 +266,6 @@ peers.on('connection', async (socket) => {
: videoCalls[callId].initiatorSocket; : videoCalls[callId].initiatorSocket;
socketToEmit.emit('new-producer', { callId }); socketToEmit.emit('new-producer', { callId });
// if (!isInitiator(callId, socket.id)) {
// await videoCalls[callId].receiverProducerTransport.connect({ dtlsParameters });
// videoCalls[callId].initiatorSocket.emit('new-producer', {
// callId,
// });
// } else {
// await videoCalls[callId].initiatorProducerTransport.connect({ dtlsParameters });
// videoCalls[callId].receiverSocket.emit('new-producer', {
// callId,
// });
// }
} catch (error) { } catch (error) {
console.log(`ERROR | transport-connect | callId ${socketDetails[socket.id]} | ${error.message}`); console.log(`ERROR | transport-connect | callId ${socketDetails[socket.id]} | ${error.message}`);
} }