Skip to content

Commit a765805

Browse files
committed
chore: Reduce the auto reconnection attempts for RDP from 20 to 5 to prevent situations where one might have to click cancel 20 times in desperation to end the process.
1 parent 2bf3fa3 commit a765805

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Ui/View/Host/ProtocolHosts/AxMsRdpClient09Host.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ private void ParentWindowSetToWindow()
115115
#region event handler
116116

117117
private int _retryCount = 0;
118-
private const int MAX_RETRY_COUNT = 20;
118+
private const int MAX_RETRY_COUNT = 5;
119119
private void OnRdpClientDisconnected(object sender, IMsTscAxEvents_OnDisconnectedEvent e)
120120
{
121121
SimpleLogHelper.Debug("RDP Host: RdpOnDisconnected");

0 commit comments

Comments
 (0)