Fixed some issues that lead to indefinite shutdown times

This commit is contained in:
ceikry
2023-01-29 19:47:56 -06:00
committed by Ryan
parent 1a1da2b71b
commit 4008f78433
3 changed files with 3 additions and 2 deletions
@@ -43,7 +43,7 @@ class AIRepository {
}
@JvmStatic fun clearAllBots() {
PulseRepository.forEach { (_, it) ->
PulseRepository.toList().forEach { (_, it) ->
it.stop();
it.botScript.bot.clear();
AIPlayer.deregister((it.botScript.bot as AIPlayer).uid)