File tree 1 file changed +3
-18
lines changed
src/libraries/Common/tests/System/Net/Sockets
1 file changed +3
-18
lines changed Original file line number Diff line number Diff line change @@ -51,16 +51,9 @@ private void OnAccept(IAsyncResult result)
51
51
{
52
52
client = _socket . EndAccept ( result ) ;
53
53
}
54
- catch ( SocketException e )
54
+ catch ( SocketException )
55
55
{
56
- if ( _disposed ||
57
- e . SocketErrorCode == SocketError . OperationAborted ||
58
- e . SocketErrorCode == SocketError . Interrupted )
59
- {
60
- return ;
61
- }
62
-
63
- throw ;
56
+ return ;
64
57
}
65
58
catch ( ObjectDisposedException )
66
59
{
@@ -81,16 +74,8 @@ private void OnAccept(IAsyncResult result)
81
74
{
82
75
_socket . BeginAccept ( OnAccept , null ) ;
83
76
}
84
- catch ( SocketException e )
77
+ catch ( SocketException )
85
78
{
86
- if ( _disposed ||
87
- e . SocketErrorCode == SocketError . OperationAborted ||
88
- e . SocketErrorCode == SocketError . Interrupted )
89
- {
90
- return ;
91
- }
92
-
93
- throw ;
94
79
}
95
80
catch ( ObjectDisposedException )
96
81
{
You can’t perform that action at this time.
0 commit comments