Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Source/NETworkManager/ViewModels/IPScannerViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ private async Task Start()

DragablzTabItem.SetTabHeader(_tabId, Host);

_cancellationTokenSource?.Dispose();
_cancellationTokenSource = new CancellationTokenSource();

// Resolve hostnames
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@ public async Task Start()
IsStatusMessageDisplayed = false;
IsRunning = true;

_cancellationTokenSource?.Dispose();
_cancellationTokenSource = new CancellationTokenSource();

// Resolve hostnames
Expand Down
1 change: 1 addition & 0 deletions Source/NETworkManager/ViewModels/PingMonitorViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ public void Start()
// Reset chart
ResetTimeChart();

_cancellationTokenSource?.Dispose();
_cancellationTokenSource = new CancellationTokenSource();

var ping = new Ping
Expand Down
1 change: 1 addition & 0 deletions Source/NETworkManager/ViewModels/PortScannerViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ private async Task Start()

DragablzTabItem.SetTabHeader(_tabId, Host);

_cancellationTokenSource?.Dispose();
_cancellationTokenSource = new CancellationTokenSource();

// Resolve hostnames
Expand Down
1 change: 1 addition & 0 deletions Source/NETworkManager/ViewModels/SNMPViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,7 @@ await DNSClientHelper.ResolveAorAaaaAsync(Host,
ipAddress = dnsResult.Value;
}

_cancellationTokenSource?.Dispose();
_cancellationTokenSource = new CancellationTokenSource();

Comment on lines +505 to 507
// SNMP...
Expand Down
1 change: 1 addition & 0 deletions Source/NETworkManager/ViewModels/TracerouteViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ private async Task StartTrace()

DragablzTabItem.SetTabHeader(_tabId, Host);

_cancellationTokenSource?.Dispose();
_cancellationTokenSource = new CancellationTokenSource();

// Try to parse the string into an IP-Address
Expand Down
1 change: 1 addition & 0 deletions Website/docs/changelog/next-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ Release date: **xx.xx.2025**

## Dependencies, Refactoring & Documentation

- Fixed `CancellationTokenSource` leak in `IPScanner`, `PortScanner`, `Traceroute`, `PingMonitor`, `PingMonitorHost` and `SNMP` ViewModels. The previous instance was never disposed before being overwritten on each run, leaking the underlying `WaitHandle`. [#3448](https://github.com/BornToBeRoot/NETworkManager/pull/3448)
- Replace fire-and-forget `.ConfigureAwait(false)` calls with explicit discard assignments (`_ = SomeAsyncOperation()`) across command handlers, startup/load paths and profile callbacks. [#3441](https://github.com/BornToBeRoot/NETworkManager/pull/3441)
- Code cleanup & refactoring
- Language files updated via [#transifex](https://github.com/BornToBeRoot/NETworkManager/pulls?q=author%3Aapp%2Ftransifex-integration)
Expand Down
Loading