mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-09-10 17:25:51 +00:00
Mark port started before StartAccept because StartAccept is a noop when the port is not started.
This commit is contained in:
@@ -34,10 +34,10 @@ namespace Renci.SshNet
|
||||
Session.ErrorOccured += Session_ErrorOccured;
|
||||
Session.Disconnected += Session_Disconnected;
|
||||
|
||||
StartAccept(null);
|
||||
|
||||
// consider port started when we're listening for inbound connections
|
||||
_status = ForwardedPortStatus.Started;
|
||||
|
||||
StartAccept(null);
|
||||
}
|
||||
|
||||
private void StartAccept(SocketAsyncEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user