fix:销毁星图资源时同时清除缓存
This commit is contained in:
parent
16ca0a012c
commit
95d6016b58
@ -776,10 +776,12 @@ class StartChartManage {
|
||||
}
|
||||
|
||||
/// 销毁资源
|
||||
void destruction() {
|
||||
void destruction() async {
|
||||
stopTalkExpectMessageTimer();
|
||||
stopTalkPingMessageTimer();
|
||||
stopHeartbeat();
|
||||
stopReStartOnlineStartChartServer();
|
||||
await Storage.removerRelayInfo();
|
||||
await Storage.removerStarChartRegisterNodeInfo();
|
||||
}
|
||||
}
|
||||
|
||||
@ -251,6 +251,16 @@ class Storage {
|
||||
return starChartRegisterNodeEntity;
|
||||
}
|
||||
|
||||
// 删除节点注册信息
|
||||
static Future<void> removerStarChartRegisterNodeInfo() async {
|
||||
removeData(starChartRegisterNodeInfo);
|
||||
}
|
||||
|
||||
// 删除节点注册信息
|
||||
static Future<void> removerRelayInfo() async {
|
||||
removeData(relayInfo);
|
||||
}
|
||||
|
||||
// 保存星图注册节点信息
|
||||
static Future<void> saveStarChartRegisterNodeInfo(
|
||||
StarChartRegisterNodeEntity starChartRegisterNodeEntity) async {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user