mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-13 16:34:24 +00:00
Hardened background work against disconnected circuits (#937)
This commit is contained in:
1 parent
99089f853e
commit
f03c2d1c88
44 files changed
+500
-126
No files matched your search
@@ -80,9 +80,10 @@ public partial class CodeEditor : ComponentBase, IAsyncDisposable
|
||||
if (this.module is null)
|
||||
return;
|
||||
|
||||
await this.module.TryInvokeVoidAsync("destroy", this.editorId);
|
||||
|
||||
try
|
||||
{
|
||||
await this.module.InvokeVoidAsync("destroy", this.editorId);
|
||||
await this.module.DisposeAsync();
|
||||
}
|
||||
catch (JSDisconnectedException)
|
||||
|
||||
Reference in new issue
Block a user