Skip to content

Commit a9528c2

Browse files
committed
Fix #79. Do not lookup agents when destroyed.
1 parent ead8aaf commit a9528c2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/hub/target.js

+3
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ Target.prototype.getName = function () {
9292
* @return {Agent} Agent object.
9393
*/
9494
Target.prototype.getAgent = function (agentId) {
95+
if (this.destroyed) {
96+
return;
97+
}
9598
return this.agents[agentId];
9699
};
97100

0 commit comments

Comments
 (0)