Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: properly shutdown twitch4j thread pools on close #391

Merged
merged 1 commit into from Jul 14, 2021

Conversation

iProdigy
Copy link
Member

@iProdigy iProdigy commented Jul 11, 2021

Prerequisites for Code Changes

  • This pull request follows the code style of the project
  • I have tested this feature

Issues Fixed

Changes Proposed

Loosen our thread pool naming pattern matching so that the following are recognized as twitch4j threadpools that ought to be shutdown on close:

  • "twitch4j"
  • "twitch4j-" + RandomStringUtils.random(4, true, true)
  • "twitch4j-chat-" + RandomStringUtils.random(4, true, true)
  • "twitch4j-pubsub-" + RandomStringUtils.random(4, true, true)
  • "twitch4j-pool-" + RandomStringUtils.random(4, true, true) + "-chat-" + RandomStringUtils.random(4, true, true)
  • "twitch4j-pool-" + RandomStringUtils.random(4, true, true) + "-pubsub-" + RandomStringUtils.random(4, true, true)

@iProdigy iProdigy linked an issue Jul 11, 2021 that may be closed by this pull request
2 tasks
@iProdigy iProdigy merged commit ef0269b into develop Jul 14, 2021
@iProdigy iProdigy deleted the fix/shutdown-our-threadpool branch July 14, 2021 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TwitchClient close() doesn't shutdown scheduledThreadPoolExecutor
2 participants