log(assist-frontend):log peer error
This commit is contained in:
parent
d5b1c7dcec
commit
f25552f91c
1 changed files with 4 additions and 1 deletions
|
|
@ -155,7 +155,10 @@ export default class AssistManager {
|
|||
});
|
||||
this.peer = peer;
|
||||
peer.on('error', e => {
|
||||
if (['peer-unavailable', 'network'].includes(e.type)) {
|
||||
if (e.type !== 'peer-unavailable') {
|
||||
console.warn("AssistManager PeerJS peer error: ", e.type, e)
|
||||
}
|
||||
if (['peer-unavailable', 'network', 'webrtc'].includes(e.type)) {
|
||||
if (this.peer && this.connectionAttempts++ < MAX_RECONNECTION_COUNT) {
|
||||
this.setStatus(ConnectionStatus.Connecting);
|
||||
console.log("peerunavailable")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue