Fix Issue #86
This commit is contained in:
@@ -95,6 +95,8 @@ export default class RoomClient
|
|||||||
this._room = null;
|
this._room = null;
|
||||||
this._roomId = roomId;
|
this._roomId = roomId;
|
||||||
|
|
||||||
|
this._doneJoining = false;
|
||||||
|
|
||||||
// Our WebTorrent client
|
// Our WebTorrent client
|
||||||
this._webTorrent = this._torrentSupport && new WebTorrent({
|
this._webTorrent = this._torrentSupport && new WebTorrent({
|
||||||
tracker : {
|
tracker : {
|
||||||
@@ -1259,7 +1261,10 @@ export default class RoomClient
|
|||||||
|
|
||||||
this._soundNotification();
|
this._soundNotification();
|
||||||
|
|
||||||
this._handlePeer(peer);
|
if (this._doneJoining)
|
||||||
|
{
|
||||||
|
this._handlePeer(peer);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
try
|
try
|
||||||
@@ -1341,6 +1346,8 @@ export default class RoomClient
|
|||||||
this._handlePeer(peer, { notify: false });
|
this._handlePeer(peer, { notify: false });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this._doneJoining = true;
|
||||||
|
|
||||||
this._spotlights.start();
|
this._spotlights.start();
|
||||||
}
|
}
|
||||||
catch (error)
|
catch (error)
|
||||||
|
|||||||
Reference in New Issue
Block a user