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