From 80b44b072275e16bfa862ccf1cb6e380298bd37d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5var=20Aamb=C3=B8=20Fosstveit?= Date: Thu, 11 Apr 2019 12:40:22 +0200 Subject: [PATCH] Fix Issue #86 --- app/src/RoomClient.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/src/RoomClient.js b/app/src/RoomClient.js index 5d14fe7..943cb69 100644 --- a/app/src/RoomClient.js +++ b/app/src/RoomClient.js @@ -95,6 +95,8 @@ export default class RoomClient this._room = null; this._roomId = roomId; + this._doneJoining = false; + // Our WebTorrent client this._webTorrent = this._torrentSupport && new WebTorrent({ tracker : { @@ -1259,7 +1261,10 @@ export default class RoomClient this._soundNotification(); - this._handlePeer(peer); + if (this._doneJoining) + { + this._handlePeer(peer); + } }); try @@ -1341,6 +1346,8 @@ export default class RoomClient this._handlePeer(peer, { notify: false }); } + this._doneJoining = true; + this._spotlights.start(); } catch (error)