We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e53482 commit 9256979Copy full SHA for 9256979
src/main/java/io/socket/nativeclient/SocketClient.java
@@ -145,22 +145,6 @@ private void transportDisconnected() {
145
}
146
147
// 断开 socket
148
- if (bos != null) {
149
- try {
150
- bos.close();
151
- bos = null;
152
- } catch (IOException e) {
153
- transportError(e);
154
- }
155
156
- if (bis != null) {
157
158
- bis.close();
159
- bis = null;
160
161
162
163
164
if (socket != null) {
165
try {
166
socket.close();
@@ -198,10 +182,6 @@ public void run() {
198
182
return;
199
183
200
184
201
202
- sleep(50);
203
- } catch (InterruptedException e) {
204
205
185
206
186
transportDisconnected();
207
187
0 commit comments