mirror of
https://github.com/Corsinvest/cv4pve-admin.git
synced 2026-04-25 21:05:54 +03:00
[PR #161] [MERGED] fix: replace try/catch ObjectDisposedException with _disposed flag #154
Labels
No labels
bug
bug
enhancement
feedback
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cv4pve-admin#154
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Corsinvest/cv4pve-admin/pull/161
Author: @franklupo
Created: 2/17/2026
Status: ✅ Merged
Merged: 2/17/2026
Merged by: @franklupo
Base:
main← Head:fix/semaphore-dispose-pattern📝 Commits (1)
be4bd96fix: replace try/catch ObjectDisposedException with _disposed flag in SemaphoreSlim pattern📊 Changes
13 files changed (+52 additions, -14 deletions)
View changed files
📝
src/Corsinvest.ProxmoxVE.Admin.Core/Components/ProxmoxVE/Cluster/Replication.razor.cs(+4 -1)📝
src/Corsinvest.ProxmoxVE.Admin.Core/Components/ProxmoxVE/Cluster/ResourcesEx.razor.cs(+4 -2)📝
src/Corsinvest.ProxmoxVE.Admin.Core/Components/ProxmoxVE/Nodes/Charts.razor.cs(+4 -1)📝
src/Corsinvest.ProxmoxVE.Admin.Core/Components/ProxmoxVE/Nodes/Disks.razor.cs(+4 -1)📝
src/Corsinvest.ProxmoxVE.Admin.Core/Components/ProxmoxVE/Vm/Snapshot/Manager.razor.cs(+4 -1)📝
src/Corsinvest.ProxmoxVE.Admin.Core/Components/Widgets/WidgetDonutBase.razor.cs(+4 -1)📝
src/Corsinvest.ProxmoxVE.Admin.Core/Components/Widgets/WidgetInfoBase.razor.cs(+4 -1)📝
src/Corsinvest.ProxmoxVE.Admin.Core/Components/Widgets/WidgetSparklineBase.razor.cs(+4 -1)📝
src/Corsinvest.ProxmoxVE.Admin.Core/Components/Widgets/WidgetThumbDetailsBase.razor.cs(+4 -1)📝
src/Corsinvest.ProxmoxVE.Admin.Module.Resources/Components/Widgets/ClusterUsage/Gauge.razor.cs(+4 -1)📝
src/Corsinvest.ProxmoxVE.Admin.Module.Resources/Components/Widgets/ClusterUsage/GaugeStacked.razor.cs(+4 -1)📝
src/Corsinvest.ProxmoxVE.Admin.Module.Resources/Components/Widgets/ClusterUsage/Grid.razor.cs(+4 -1)📝
src/Corsinvest.ProxmoxVE.Admin.Module.Resources/Components/Widgets/Maps/Render.razor.cs(+4 -1)📄 Description
Summary
try { _refreshLock?.Release(); } catch (ObjectDisposedException) { }with a cleaner_disposedflag pattern across all 13 components_disposed = truebeforeDispose()to prevent new entriesRelease()withif (!_disposed)to avoid using a disposed semaphoreResourcesEx,Replication,Charts,Disks,Snapshot/Manager,WidgetDonutBase,WidgetInfoBase,WidgetSparklineBase,WidgetThumbDetailsBase,ClusterUsage/Gauge,ClusterUsage/GaugeStacked,ClusterUsage/Grid,Maps/RenderTest plan
ObjectDisposedExceptionin logs🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.