Skip to content

Commit 148939a

Browse files
committed
fix smell: 'UdpClientWrapper' - method 'StartListeningAsync' the variable 'ex' is declared but never used
add the exception message using the 'ex' variable.
1 parent 190b21e commit 148939a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NetSdrClientApp/Networking/UdpClientWrapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public async Task StartListeningAsync()
3939
}
4040
catch (OperationCanceledException ex)
4141
{
42-
//empty
42+
Console.WriteLine($"Operation was canceled. Message: {ex.Message}");
4343
}
4444
catch (Exception ex)
4545
{

0 commit comments

Comments
 (0)