This commit is contained in:
Ylian Saint-Hilaire 2021-04-15 12:04:59 -07:00
parent 4295e8ef04
commit 58b117c8e7

View File

@ -94,6 +94,7 @@ function CreateDesktopMultiplexor(parent, domain, nodeid, func) {
// Add an agent or viewer
obj.addPeer = function (peer) {
if (obj.viewers == null) { parent.parent.debug('relay', 'DesktopRelay: Error, addingPeer on disposed session'); return; }
if (peer.req == null) return; // This peer is already disposed, don't add it.
if (peer.req.query.browser) {
//console.log('addPeer-viewer', obj.nodeid);