Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldb09 committed Jan 28, 2023
1 parent 25ac12a commit c26fe07
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions LavalinkServer/src/main/java/lavalink/server/io/SocketContext.kt
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,8 @@ class SocketContext(


init {
executor.scheduleAtFixedRate(statsCollector.createTask(this), 0, 1, TimeUnit.MINUTES)

playerUpdateService = Executors.newScheduledThreadPool(2) { r ->
val thread = Thread(r)
thread.name = "player-update"
thread.isDaemon = true
thread
}


}

override fun getSessionId(): String {
Expand Down Expand Up @@ -219,7 +213,6 @@ class SocketContext(
internal fun shutdown() {
log.info("Shutting down ${playingPlayers.size} playing players.")
executor.shutdown()
playerUpdateService.shutdown()
players.values.forEach {
this.destroyPlayer(it.guildId)
}
Expand Down

0 comments on commit c26fe07

Please sign in to comment.