From 58b117c8e7ba314b197fbc47e7c6e1001a5200ce Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Thu, 15 Apr 2021 12:04:59 -0700 Subject: [PATCH] Fix for #2509 --- meshdesktopmultiplex.js | 1 + 1 file changed, 1 insertion(+) diff --git a/meshdesktopmultiplex.js b/meshdesktopmultiplex.js index 39144c3e..82d6831e 100644 --- a/meshdesktopmultiplex.js +++ b/meshdesktopmultiplex.js @@ -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);