Skip to content

Commit

Permalink
Remove debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jstedfast committed Jul 24, 2021
1 parent 028985a commit 1bb1674
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions MailKit/Net/NetworkStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ void Disconnect ()
Socket.Disconnect (false);
#endif
Socket.Dispose ();
} catch (Exception ex) {
Console.WriteLine ($"NetworkStream::Disconnect exception: {ex}");
} catch {
return;
} finally {
connected = false;
Expand Down Expand Up @@ -287,7 +286,6 @@ public void Poll (SelectMode mode, CancellationToken cancellationToken)
protected override void Dispose (bool disposing)
{
if (disposing) {
Console.WriteLine ($"NetworkStream disposing...");
if (ownsSocket && connected) {
ownsSocket = false;
Disconnect ();
Expand Down

0 comments on commit 1bb1674

Please sign in to comment.