Include pixelworks and terminate workers before creating new ones
This commit is contained in:
@@ -11,17 +11,17 @@ class Disposable {
|
||||
/**
|
||||
* The object has already been disposed.
|
||||
* @type {boolean}
|
||||
* @private
|
||||
* @protected
|
||||
*/
|
||||
this.disposed_ = false;
|
||||
this.disposed = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up.
|
||||
*/
|
||||
dispose() {
|
||||
if (!this.disposed_) {
|
||||
this.disposed_ = true;
|
||||
if (!this.disposed) {
|
||||
this.disposed = true;
|
||||
this.disposeInternal();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user