mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
feat(ui): abort controller in SAM module when destroying
This commit is contained in:
committed by
Kent Keirsey
parent
c08075946a
commit
bc954b9996
@@ -779,6 +779,10 @@ export class CanvasSegmentAnythingModule extends CanvasModuleBase {
|
||||
|
||||
destroy = () => {
|
||||
this.log.debug('Destroying module');
|
||||
if (this.abortController && !this.abortController.signal.aborted) {
|
||||
this.abortController.abort();
|
||||
}
|
||||
this.abortController = null;
|
||||
this.unsubscribe();
|
||||
this.konva.group.destroy();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user