mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 17:25:36 +00:00
Bug 917982 - The ThreadActor's threadLifetimePool should actually have the same lifetime as the thread; r=jimb
This commit is contained in:
parent
5d95fd17f1
commit
f8f661b16c
@ -527,12 +527,13 @@ ThreadActor.prototype = {
|
||||
eventLoop.resolve();
|
||||
},
|
||||
|
||||
/**
|
||||
* Remove all debuggees and clear out the thread's sources.
|
||||
*/
|
||||
clearDebuggees: function () {
|
||||
if (this.dbg) {
|
||||
this.dbg.removeAllDebuggees();
|
||||
}
|
||||
this.conn.removeActorPool(this._threadLifetimePool || undefined);
|
||||
this._threadLifetimePool = null;
|
||||
this._sources = null;
|
||||
},
|
||||
|
||||
@ -636,6 +637,8 @@ ThreadActor.prototype = {
|
||||
this._state = "exited";
|
||||
|
||||
this.clearDebuggees();
|
||||
this.conn.removeActorPool(this._threadLifetimePool);
|
||||
this._threadLifetimePool = null;
|
||||
|
||||
if (this._prettyPrintWorker) {
|
||||
this._prettyPrintWorker.removeEventListener(
|
||||
|
Loading…
Reference in New Issue
Block a user