Skip to content

Commit 1eb562b

Browse files
author
bulezeng(曾卫进)
committed
增加 response close 调用 释放资源
1 parent 45b2608 commit 1eb562b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/tencent/xinge/XingeApp.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ private JSONObject callRestful(String apiAddress, String jsonRequestString) {
124124
jsonRet.put("err_msg", "CallApiError,HttpStatus Code:" + response.code());
125125
}
126126
}
127+
response.close();
127128
} catch (IOException e) {
128129
jsonRet = new JSONObject();
129130
jsonRet.put("ret_code", 10100);

0 commit comments

Comments
 (0)