Skip to content

Commit c1dbe4e

Browse files
brunoborgesCopilot
andauthored
Update src/site/markdown/cookbook/error-handling.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 5efa32b commit c1dbe4e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/site/markdown/cookbook/error-handling.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ public class AbortRequest {
148148
System.out.println("Request aborted");
149149
} catch (Exception ex) {
150150
System.err.println("Failed to abort: " + ex.getMessage());
151+
} finally {
152+
scheduler.shutdown();
151153
}
152154
}, 5, TimeUnit.SECONDS);
153155
}

0 commit comments

Comments
 (0)