diff options
Diffstat (limited to 'devtools/shared/protocol/Pool.js')
-rw-r--r-- | devtools/shared/protocol/Pool.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/devtools/shared/protocol/Pool.js b/devtools/shared/protocol/Pool.js index b5cb4c3eb1..0bbad46161 100644 --- a/devtools/shared/protocol/Pool.js +++ b/devtools/shared/protocol/Pool.js @@ -212,8 +212,12 @@ class Pool extends EventEmitter { actor.destroy = destroy; } } - this.conn.removeActorPool(this); - this.conn = null; + + // `conn` might be null for LazyPool in an unexplained way. + if (this.conn) { + this.conn.removeActorPool(this); + this.conn = null; + } } } |