mirror of
https://github.com/Xahau/xahau.js.git
synced 2026-04-29 15:37:50 +00:00
Catch request errors
This commit is contained in:
@@ -31,6 +31,7 @@ util.inherits(Request, EventEmitter);
|
||||
Request.prototype.request = function (remote) {
|
||||
if (!this.requested) {
|
||||
this.requested = true;
|
||||
this.on('error', new Function);
|
||||
this.remote.request(this);
|
||||
this.emit('request', remote);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user