Skip to content

Commit

Permalink
Fix #79. Do not lookup agents when destroyed.
Browse files Browse the repository at this point in the history
  • Loading branch information
reid committed Feb 6, 2014
1 parent ead8aaf commit a9528c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/hub/target.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ Target.prototype.getName = function () {
* @return {Agent} Agent object.
*/
Target.prototype.getAgent = function (agentId) {
if (this.destroyed) {
return;
}
return this.agents[agentId];
};

Expand Down

0 comments on commit a9528c2

Please sign in to comment.