Commit 209271e litongjava
committed
1 parent 2fa95c9 commit 209271e Copy full SHA for 209271e
File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -145,9 +145,9 @@ import com.litongjava.tio.utils.environment.EnvironmentUtils;
145
145
import com.litongjava.tio.utils.network.IpUtils;
146
146
import com.litongjava.tio.utils.notification.NotifactionWarmModel;
147
147
import com.litongjava.tio.utils.notification.NotificationUtils;
148
- import okhttp3.Response;
149
148
150
149
import lombok.extern.slf4j.Slf4j;
150
+ import okhttp3.Response;
151
151
152
152
@Slf4j
153
153
public class GlobalExceptionHadler implements TioBootExceptionHandler {
@@ -177,9 +177,8 @@ public class GlobalExceptionHadler implements TioBootExceptionHandler {
177
177
model.setTime(new Date());
178
178
model.setContent(requestURL + "\n" + stackTrace);
179
179
180
- Response response = NotificationUtils.sendWarm(model);
181
- //close response
182
- response.close();
180
+ try (Response response = NotificationUtils.sendWarm(model)) {
181
+ }
183
182
184
183
}
185
184
}
You can’t perform that action at this time.
0 commit comments