Skip to content

Commit

Permalink
Add fix on close ControlPanel
Browse files Browse the repository at this point in the history
  • Loading branch information
tinohager committed Aug 24, 2023
1 parent f34d3ba commit e95b191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Portalum.Zvt.ControlPanel/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ private async Task<bool> ConnectAsync()

private async Task<bool> DisconnectAsync()
{
this._cancellationTokenSource.Cancel();
this._cancellationTokenSource?.Cancel();

if (!await this._deviceCommunication.DisconnectAsync())
{
Expand Down

0 comments on commit e95b191

Please sign in to comment.