Skip to content
Success

Changes

Summary

  1. Improve conditional waiting and shutdown handling (#2269) (commit: 30ba384) (details)
Commit 30ba384de8578b2c28d6e77901af9f67a5046bf6 by noreply
Improve conditional waiting and shutdown handling (#2269)

* Make use of conditional variables instead of polling loops
* Add awaitShutdown
* Improve shutdown logic to allow awaitShutdown to work
* Fire ShutdownEvent when requester is also shutdown
* Ensure shutdown is idempotent
(commit: 30ba384)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/audio/AudioWebSocket.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/JDAImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/audio/AudioConnection.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/requests/ratelimit/BotRateLimiter.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/JDA.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/requests/WebSocketClient.java (diff)