Skip to content

Conversation

@vkirst
Copy link
Contributor

@vkirst vkirst commented Nov 16, 2025

No description provided.

resp.setContentType(CBConstants.APPLICATION_JSON);
WSUtils.clientGson.toJson(Map.of("events", events), resp.getWriter());
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need it here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

InterruptedException clears the thread’s interrupt flag. Restoring it preserves the interruption so higher-level code can notice it and react appropriately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants