mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-09-11 13:39:09 +00:00
Change methods to use the Session.Infinite value rather than -1 or their own Infinite value
This commit is contained in:
@@ -464,7 +464,7 @@ namespace Renci.SshNet
|
||||
/// </returns>
|
||||
public string Expect(string text)
|
||||
{
|
||||
return Expect(new Regex(Regex.Escape(text)), TimeSpan.FromMilliseconds(-1));
|
||||
return Expect(new Regex(Regex.Escape(text)), Session.InfiniteTimeSpan);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -143,7 +143,7 @@ namespace Renci.SshNet
|
||||
_session = session;
|
||||
CommandText = commandText;
|
||||
_encoding = encoding;
|
||||
CommandTimeout = SshNet.Session.InfiniteTimeSpan;
|
||||
CommandTimeout = Session.InfiniteTimeSpan;
|
||||
_sessionErrorOccuredWaitHandle = new AutoResetEvent(false);
|
||||
|
||||
_session.Disconnected += Session_Disconnected;
|
||||
|
||||
Reference in New Issue
Block a user