Skip to content

Commit a4a86a9

Browse files
committed
fix dispose bug
1 parent 2d57173 commit a4a86a9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,4 +330,4 @@ ASALocalRun/
330330
.mfractor/
331331

332332
.parcel-cache
333-
.received.txt
333+
*.received.txt

src/LoreSoft.Blazor.Controls/Breakpoint/BreakpointProvider.razor.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,18 @@ public async ValueTask DisposeAsync()
140140

141141
if (_monitor != null)
142142
{
143-
await _monitor.InvokeVoidAsync("dispose");
144143
await _monitor.DisposeAsync();
144+
_monitor = null;
145145
}
146146

147147
if (_module != null)
148+
{
148149
await _module.DisposeAsync();
150+
_module = null;
151+
}
149152

150153
_dotNetRef?.Dispose();
154+
_dotNetRef = null;
151155

152156
GC.SuppressFinalize(this);
153157
}

0 commit comments

Comments
 (0)