handle the PeerID-already-in-use error and display a friendly message
This commit is contained in:
parent
f4f060a45b
commit
190185ac9c
3 changed files with 17 additions and 3 deletions
|
|
@ -262,6 +262,7 @@ Network.prototype._setupPeerHandlers = function(openCallback) {
|
|||
p.on('error', function(err) {
|
||||
if (!err.message.match(/Could\snot\sconnect\sto peer/)) {
|
||||
console.log('### PEER ERROR:', err);
|
||||
self.emit('error', err);
|
||||
}
|
||||
self._checkAnyPeer();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue