Skip to content

Commit

Permalink
Shutdown MockWebServer so process exits cleanly.
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeWharton committed Sep 25, 2015
1 parent a704966 commit 404a37f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,7 @@ public static void main(String... args) throws IOException {
// Convert the error body into our Error type.
Error error = errorConverter.convert(response.errorBody());
System.out.println("ERROR: " + error.message);

server.shutdown();
}
}

0 comments on commit 404a37f

Please sign in to comment.