|
@@ -1482,13 +1482,14 @@ Socket.prototype._setHTTPTimeout = function() {
|
|
} else {
|
|
} else {
|
|
old.abort();
|
|
old.abort();
|
|
}
|
|
}
|
|
- }, 5000);
|
|
|
|
|
|
+ }, 25000);
|
|
};
|
|
};
|
|
|
|
|
|
/** Exposed send for DC & Peer. */
|
|
/** Exposed send for DC & Peer. */
|
|
Socket.prototype.send = function(data) {
|
|
Socket.prototype.send = function(data) {
|
|
if (!data.type) {
|
|
if (!data.type) {
|
|
this.emit('error', 'Invalid message');
|
|
this.emit('error', 'Invalid message');
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
|
|
|
|
message = JSON.stringify(data);
|
|
message = JSON.stringify(data);
|