mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #1299 from matiaspando/error/fixLostMessages
Subscribe again to receive messages
This commit is contained in:
commit
b15ddf23c4
|
@ -235,7 +235,8 @@ Network.prototype._setupConnectionHandlers = function(cb) {
|
|||
self.socket.on('connect', function() {
|
||||
|
||||
self.socket.on('disconnect', function() {
|
||||
self.cleanUp();
|
||||
var pubKey = self.getKey().public.toString('hex');
|
||||
self.socket.emit('subscribe', pubKey);
|
||||
});
|
||||
|
||||
if (typeof cb === 'function') cb();
|
||||
|
|
Loading…
Reference in New Issue