Open HelgeStenstrom opened 5 years ago
From what I could see, that stopped the playing, but the main application did not exit, because there was still a thread running.
I made some tests with stop() in my new main(). The playback stopped, but the application didn't exit if I didn't call System.exit(). Of course I didn't include this test in the pull request.
Hm then it's the ExecutorService of Stream Player that doesn't exit immediately probably :)
I just realized that this issue is the same as #1 .
I can't find how to stop the player. When I run Main.main(), it continues to sound after main() exits. The only way I have found is to call System.exit().
How can the player thread be stopped and/or joined?