mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Fixed agent tunnel unable to connect.
This commit is contained in:
parent
701dbce127
commit
6531e40c0d
5 changed files with 8 additions and 4 deletions
|
@ -93,7 +93,7 @@ function CreateDesktopMultiplexor(parent, domain, nodeid, func) {
|
|||
|
||||
// Add an agent or viewer
|
||||
obj.addPeer = function (peer) {
|
||||
if (obj.viewers == null) return;
|
||||
if (obj.viewers == null) { parent.parent.debug('relay', 'DesktopRelay: Error, addingPeer on disposed session'); return; }
|
||||
if (peer.req.query.browser) {
|
||||
//console.log('addPeer-viewer', obj.nodeid);
|
||||
|
||||
|
@ -138,7 +138,7 @@ function CreateDesktopMultiplexor(parent, domain, nodeid, func) {
|
|||
obj.sendSessionMetadata();
|
||||
} else {
|
||||
//console.log('addPeer-agent', obj.nodeid);
|
||||
if (obj.agent != null) return false;
|
||||
if (obj.agent != null) { parent.parent.debug('relay', 'DesktopRelay: Error, duplicate agent connection'); return false; }
|
||||
|
||||
// Setup the agent
|
||||
obj.agent = peer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue