forked from snxraven/LinkUp-P2P-Chat
Compare commits
3 Commits
01ca4aae5a
...
624222f726
Author | SHA1 | Date | |
---|---|---|---|
624222f726 | |||
37ce0ff5bf | |||
|
9eeb38ca3f |
5
app.js
5
app.js
@ -241,6 +241,11 @@ async function handleConnection(connection, info) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function retryConnection(topicBuffer) {
|
function retryConnection(topicBuffer) {
|
||||||
|
if (!topicBuffer || !topicBuffer.buffer) {
|
||||||
|
console.error('Invalid topicBuffer:', topicBuffer);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const topic = b4a.toString(topicBuffer, 'hex');
|
const topic = b4a.toString(topicBuffer, 'hex');
|
||||||
const room = activeRooms.find(room => room.topic === topic);
|
const room = activeRooms.find(room => room.topic === topic);
|
||||||
if (room) {
|
if (room) {
|
||||||
|
Loading…
Reference in New Issue
Block a user