diff --git a/lib/hub/agent.js b/lib/hub/agent.js index 3eb70551..7032e7d4 100644 --- a/lib/hub/agent.js +++ b/lib/hub/agent.js @@ -115,6 +115,13 @@ Agent.prototype.dispatch = function (urls) { this.next(); }; +Agent.prototype.unload = function () { + this.connected = false; + this.seen = 0; + this.waiting = false; + this.emit("disconnected"); +}; + Agent.prototype.ping = function () { this.connected = true; this.seen = new Date();