mirror of
https://github.com/invoke-ai/InvokeAI
synced 2026-05-03 04:02:05 +02:00
feat(ui): abort controller in SAM module when destroying
This commit is contained in:
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();
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user