Skip to content

Commit 9bb0b68

Browse files
committed
Properly close test HttpServer, close AsyncHttpClient#1434
1 parent 583ec6f commit 9bb0b68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/test/java/org/asynchttpclient/testserver/HttpServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public void reset() {
119119

120120
@Override
121121
public void close() throws IOException {
122-
if (server == null) {
122+
if (server != null) {
123123
try {
124124
server.stop();
125125
} catch (Exception e) {

0 commit comments

Comments
 (0)