[*] 日常优化

This commit is contained in:
acgist
2023-10-10 07:54:00 +08:00
parent 5de53dd41e
commit f012bbc701
2 changed files with 8 additions and 2 deletions

View File

@@ -1474,8 +1474,12 @@ class Taoyao extends RemoteClient {
*
* @param {*} clientId 目标终端ID
*/
controlWakeup(clientId) {
this.request(protocol.buildMessage("control::wakeup", {
async controlWakeup(clientId) {
if(clientId === this.clientId) {
console.warn("不能自己唤醒自己");
return;
}
return await this.request(protocol.buildMessage("control::wakeup", {
to: clientId
}));
}

View File

@@ -12,6 +12,8 @@ import com.acgist.taoyao.signal.protocol.ProtocolControlAdapter;
/**
* 终端唤醒信令
*
* 注意:不能自己唤醒自己
*
* @author acgist
*/
@Protocol