We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cf9278 commit 647139eCopy full SHA for 647139e
webmagic-core/src/main/java/us/codecraft/webmagic/utils/ProxyUtils.java
@@ -30,13 +30,12 @@ public static boolean validateProxy(Proxy p) {
30
logger.warn("FAILRE - CAN not connect! remote: " + p);
31
return false;
32
} finally {
33
- if (socket != null) {
34
- try {
+ try {
35
socket.close();
36
} catch (IOException e) {
37
logger.warn("Error occurred while closing socket of validating proxy", e);
38
}
39
- }
+
40
41
42
0 commit comments