@@ -56,11 +56,11 @@ public class MusicServiceImpl implements MusicService, Runnable {
}
- @SneakyThrows
@Override
+ @SneakyThrows
public void run() {
while (true) {
- Thread.sleep(500);
+ Thread.sleep(100);
synchronized (this) {
try {
log.info("----------");
@@ -90,7 +90,7 @@ public class MusicServiceImpl implements MusicService, Runnable {
log.info("repeat");
p = Runtime.getRuntime().exec(cmd);
} else {
- return;
+ break;