mirror of
https://github.com/Coloryr/AllMusic.git
synced 2026-11-28 05:35:39 +00:00
up 线程管理
This commit is contained in:
1 parent
adbc160397
commit
d311b81805
6 files changed
+58
-92
No files matched your search
+7
-4
@@ -47,7 +47,7 @@ public class AllMusic {
|
||||
/**
|
||||
* 插件版本号
|
||||
*/
|
||||
public static final String version = "3.8.0";
|
||||
public static final String version = "3.9.0";
|
||||
/**
|
||||
* 配置文件版本号
|
||||
*/
|
||||
@@ -338,6 +338,8 @@ public class AllMusic {
|
||||
* 启动插件
|
||||
*/
|
||||
public static void start() {
|
||||
isRun = true;
|
||||
|
||||
MusicHttpClient.init();
|
||||
|
||||
IMusicApi api = new NetiApiMain();
|
||||
@@ -355,13 +357,14 @@ public class AllMusic {
|
||||
* 停止插件
|
||||
*/
|
||||
public static void stop() {
|
||||
isRun = false;
|
||||
|
||||
PlayMusic.clearVote();
|
||||
PlayMusic.clearPush();
|
||||
side.sendStop();
|
||||
MusicSearch.stop();
|
||||
PlayMusic.stop();
|
||||
PlayMusic.clear();
|
||||
PlayRuntime.stop();
|
||||
DataSql.stop();
|
||||
side.sendStop();
|
||||
log.data("<light_purple>[AllMusic3]<dark_green><yellow>已停止,感谢使用");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user