Skip to content

Commit

Permalink
fix: TcpScpiConnection: Use correct timeout value during connection.
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtech committed Sep 15, 2023
1 parent f54549d commit c56f09f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ScpiNet/TcpScpiConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public async Task Open(CancellationToken cancellationToken = default)

// Start asynchronous connection and connection timeout task:
Logger?.LogInformation($"Creating TCP connection to {Host}:{Port}...", Host, Port);
Task timeoutTask = Task.Delay(100, cancellationToken);
Task timeoutTask = Task.Delay(Timeout, cancellationToken);
Task connTask = _Client.ConnectAsync(Host, Port);

// Wait for either successful connection or timeout:
Expand Down

0 comments on commit c56f09f

Please sign in to comment.