Skip to content

Commit 5048498

Browse files
committed
Removed some debug code.
1 parent e1a5578 commit 5048498

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

src/Renci.SshNet/Channels/ChannelForwardedTcpip.cs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,6 @@ protected override void OnErrorOccured(Exception exp)
9494
/// </summary>
9595
private void ForwardedPort_Closing(object sender, EventArgs eventArgs)
9696
{
97-
#if DEBUG_GERT
98-
Console.WriteLine("ID: " + Thread.CurrentThread.ManagedThreadId + " | ChannelForwardedTcpip.ForwardedPort_Closing");
99-
#endif // DEBUG_GERT
100-
10197
// signal to the server that we will not send anything anymore; this will also interrupt the
10298
// blocking receive in Bind if the server sends FIN/ACK in time
10399
//
@@ -111,10 +107,6 @@ private void ForwardedPort_Closing(object sender, EventArgs eventArgs)
111107
/// <param name="how">One of the <see cref="SocketShutdown"/> values that specifies the operation that will no longer be allowed.</param>
112108
private void ShutdownSocket(SocketShutdown how)
113109
{
114-
#if DEBUG_GERT
115-
Console.WriteLine("ID: " + Thread.CurrentThread.ManagedThreadId + " | ChannelForwardedTcpip.ShutdownSocket");
116-
#endif // DEBUG_GERT
117-
118110
if (_socket == null || !_socket.Connected)
119111
return;
120112

@@ -138,10 +130,6 @@ private void CloseSocket()
138130

139131
lock (_socketShutdownAndCloseLock)
140132
{
141-
#if DEBUG_GERT
142-
Console.WriteLine("ID: " + Thread.CurrentThread.ManagedThreadId + " | ChannelForwardedTcpip.CloseSocket");
143-
#endif // DEBUG_GERT
144-
145133
var socket = _socket;
146134
if (socket != null)
147135
{
@@ -160,10 +148,6 @@ private void CloseSocket()
160148
/// <param name="wait"><c>true</c> to wait for the SSH_MSG_CHANNEL_CLOSE message to be received from the server; otherwise, <c>false</c>.</param>
161149
protected override void Close(bool wait)
162150
{
163-
#if DEBUG_GERT
164-
Console.WriteLine("ID: " + Thread.CurrentThread.ManagedThreadId + " | ChannelForwardedTcpip.Close");
165-
#endif // DEBUG_GERT
166-
167151
var forwardedPort = _forwardedPort;
168152
if (forwardedPort != null)
169153
{
@@ -184,15 +168,6 @@ protected override void Close(bool wait)
184168
CloseSocket();
185169
}
186170

187-
#if DEBUG_GERT
188-
protected override void OnClose()
189-
{
190-
base.OnClose();
191-
192-
Console.WriteLine("ID: " + Thread.CurrentThread.ManagedThreadId + " | OnClose");
193-
}
194-
#endif // DEBUG_GERT
195-
196171
/// <summary>
197172
/// Called when channel data is received.
198173
/// </summary>

0 commit comments

Comments
 (0)